From d3675ae05814a46b6d3b5836c60d9b5194bdbffe Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Thu, 28 Jan 2016 17:37:59 +0000 Subject: Removed compilation warning. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11077 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_x.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; -- cgit v1.2.3