diff options
author | joerg <joerg@FreeBSD.org> | 2002-08-25 19:01:49 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 2002-08-25 19:01:49 +0000 |
commit | e6260cb98d51d9a1055b12742526af60f31d32b1 (patch) | |
tree | 1a3c493e7f2ff75a8240c223f4f07c9fa033cd37 /cad | |
parent | 7c88d6bcf373b5da5311ab9c8ad27d720084e2d6 (diff) | |
download | FreeBSD-ports-e6260cb98d51d9a1055b12742526af60f31d32b1.zip FreeBSD-ports-e6260cb98d51d9a1055b12742526af60f31d32b1.tar.gz |
Do not destroy the graph to be printed too early.
Another old patch of mine the maintainer never responded to.
Diffstat (limited to 'cad')
-rw-r--r-- | cad/spice/files/patch-bd | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/cad/spice/files/patch-bd b/cad/spice/files/patch-bd new file mode 100644 index 0000000..cd9e272 --- /dev/null +++ b/cad/spice/files/patch-bd @@ -0,0 +1,27 @@ +--- src/lib/fte/doplot.c.orig Fri Mar 22 21:02:55 2002 ++++ src/lib/fte/doplot.c Fri Mar 22 22:14:07 2002 +@@ -147,10 +147,23 @@ + DevSwitch(NULL); + return; + } ++ /* ++ * Since the hardcopy output routines rely on currentgraph ++ * being set, we need to set it to our tempgraph. Note ++ * that DevSwitch(NULL) causes the Close() function of the ++ * hardcopy device to be called which will in turn ++ * finalize the output, thus still needs a valid ++ * currentgraph. For that reason, we may only pop the ++ * context after calling it, and likewise we should not ++ * destroy the tempgraph until the hardcopy device has ++ * been closed. ++ */ ++ PushGraphContext(tempgraph); + gr_resize(tempgraph); + gr_redraw(tempgraph); +- DestroyGraph(tempgraph->graphid); + DevSwitch(NULL); ++ PopGraphContext(); ++ DestroyGraph(tempgraph->graphid); + foundit = 1; + } + } |