diff --git a/lib/PDL/Graphics/Gnuplot.pm b/lib/PDL/Graphics/Gnuplot.pm index 61970d6..8e9606f 100644 --- a/lib/PDL/Graphics/Gnuplot.pm +++ b/lib/PDL/Graphics/Gnuplot.pm @@ -7272,7 +7272,7 @@ sub _killGnuplot { $z = waitpid($goner,0); } else { - _printGnuplotPipe($this,$suffix,"set term qt 0 close\n") if $this->{terminal} eq 'qt'; + _printGnuplotPipe($this,$suffix,"set term qt 0 close\n") if ($this->{terminal}//'') eq 'qt'; _printGnuplotPipe($this,$suffix,"exit\n"); # Give it 2 seconds to quit, then interrupt it again.