Browse Source

[ 1885979 ] Segmentation fault on plot window maximize after hardcopy: debugged

pre-master-46
h_vogt 18 years ago
parent
commit
30aba21d91
  1. 8
      src/frontend/com_hardcopy.c

8
src/frontend/com_hardcopy.c

@ -8,6 +8,7 @@
#include <cpdefs.h>
#include <fteinput.h>
#include <ftedev.h>
#include "ftedbgra.h"
#include "plotting/plotit.h"
#include "plotting/graphdb.h"
@ -60,6 +61,10 @@ com_hardcopy(wordlist *wl)
/* enable screen plot selection for these display types */
foundit = 0;
/* save current graphics context, because plotit() will create a new
currentgraph */
PushGraphContext(currentgraph);
#ifndef X_DISPLAY_MISSING
if (!wl && hc_button) {
@ -166,5 +171,8 @@ com_hardcopy(wordlist *wl)
if (tempf && *device)
(void) unlink(fname);
/* restore previous graphics context by retrieving the previous currentgraph */
PopGraphContext();
return;
}
Loading…
Cancel
Save