Mercurial > forge
changeset 52:7c7ea879ed97 octave-forge
handle case when output was already to a file before the print
author | pkienzle |
---|---|
date | Wed, 14 Nov 2001 15:21:33 +0000 |
parents | 2cd74279a558 |
children | 9a14868449af |
files | main/plot/print.m |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/main/plot/print.m Wed Nov 14 15:14:40 2001 +0000 +++ b/main/plot/print.m Wed Nov 14 15:21:33 2001 +0000 @@ -290,15 +290,15 @@ unwind_protect_cleanup ## Restore init state - if isempty (origout) - gset output; - else - eval (sprintf ("gset output %s;", origout)); - end if ! isempty (terminal_default) eval (sprintf ("gset terminal %s;", terminal_default)); endif eval (sprintf ("gset terminal %s;", origterm)); + if isempty (origout) + gset output; + else + eval (sprintf ("gset output \"%s\";", origout)); + end replot; automatic_replot = _automatic_replot ;