diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-07-11 12:21:25 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2020-07-11 12:21:25 +0200 |
| commit | 2984fe638cefe617f749950622ee58a31c6b3ca1 (patch) | |
| tree | c8963fd87eace84d693db111d4b4457de8d3b4bc /FL/Fl_PostScript.H | |
| parent | 8d5eed3c82fa6f59c4f9d860f1d5c6bbdd837d80 (diff) | |
Fix for building without print support (GitHub issue #98).
Diffstat (limited to 'FL/Fl_PostScript.H')
| -rw-r--r-- | FL/Fl_PostScript.H | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FL/Fl_PostScript.H b/FL/Fl_PostScript.H index b5b84e422..489916d6b 100644 --- a/FL/Fl_PostScript.H +++ b/FL/Fl_PostScript.H @@ -357,7 +357,7 @@ public: ~Fl_EPS_File_Surface(); virtual int printable_rect(int *w, int *h); /** Returns the underlying FILE pointer */ - FILE *file() { return driver()->output; } + FILE *file() { return driver() ? driver()->output : NULL; } virtual void origin(int x, int y); virtual void origin(int *px, int *py); virtual void translate(int x, int y); |
