diff options
| author | Manolo Gouy <Manolo> | 2016-03-31 05:01:22 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-03-31 05:01:22 +0000 |
| commit | 62f9813e4ed6a001848d3c31b72f3d48d48df774 (patch) | |
| tree | 14e7a8a4fdebcc9e9579de91eee709a45142fa5b /src/Fl_Widget_Surface.cxx | |
| parent | 9959aff3681ccb897dc861cbfe08a1d4f4ee937c (diff) | |
Fix error with PostScript driver on the Mac platform.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11481 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Widget_Surface.cxx')
| -rw-r--r-- | src/Fl_Widget_Surface.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Fl_Widget_Surface.cxx b/src/Fl_Widget_Surface.cxx index 1453b9447..3d557cdde 100644 --- a/src/Fl_Widget_Surface.cxx +++ b/src/Fl_Widget_Surface.cxx @@ -180,8 +180,10 @@ int Fl_Widget_Surface::printable_rect(int *w, int *h) {return 1;} */ void Fl_Widget_Surface::draw_decorated_window(Fl_Window *win, int x_offset, int y_offset) { - Fl_Shared_Image *top, *left, *bottom, *right; - win->driver()->capture_titlebar_and_borders(top, left, bottom, right); + Fl_Shared_Image *top=0, *left=0, *bottom=0, *right=0; + if (win->border() && !win->parent()) { + win->driver()->capture_titlebar_and_borders(top, left, bottom, right); + } int wsides = left ? left->w() : 0; int toph = top ? top->h() : 0; if (top) { |
