summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-01-28 17:37:59 +0000
committerManolo Gouy <Manolo>2016-01-28 17:37:59 +0000
commitd3675ae05814a46b6d3b5836c60d9b5194bdbffe (patch)
treec93631d09385b885bf867d324d54156a92e1a3c4 /src
parent5aefd057d18c7ab21c62c876045fd11230b2c20a (diff)
Removed compilation warning.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11077 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_x.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx
index bd13607da..e45405e70 100644
--- a/src/Fl_x.cxx
+++ b/src/Fl_x.cxx
@@ -3046,6 +3046,7 @@ void Fl_Window::capture_titlebar_and_borders(Fl_RGB_Image*& top, Fl_RGB_Image*&
do_it = (XQueryTree(fl_display, fl_window, &root, &parent, &children, &n) != 0 &&
XTranslateCoordinates(fl_display, fl_window, parent, 0, 0, &wsides, &htop, &child_win) == True);
if (n) XFree(children);
+ if (!do_it) wsides = htop = 0;
int hbottom = wsides;
fl_window = parent;
uchar *rgb;