From 5bbc3512009df106ee434dff533381003659ca37 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Fri, 7 Jun 2002 16:57:21 +0000 Subject: Don't redraw outside label if the window hasn't been shown - otherwise fl_open_display() gets called unnecessarily... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2289 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Fl.cxx b/src/Fl.cxx index 4fe276bed..ae199f122 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl.cxx,v 1.24.2.41.2.36 2002/06/02 21:06:24 easysw Exp $" +// "$Id: Fl.cxx,v 1.24.2.41.2.37 2002/06/07 16:57:21 easysw Exp $" // // Main event handling code for the Fast Light Tool Kit (FLTK). // @@ -837,7 +837,7 @@ void Fl_Widget::redraw() { window()->damage(FL_DAMAGE_ALL, X, Y, w() + 2, h() + 2); } - if (align() && !(align() & FL_ALIGN_INSIDE)) { + if (align() && !(align() & FL_ALIGN_INSIDE) && window()->shown()) { // If the label is not inside the widget, compute the location of // the label and redraw the window within that bounding box... int W = 0, H = 0; @@ -931,5 +931,5 @@ void Fl_Window::flush() { } // -// End of "$Id: Fl.cxx,v 1.24.2.41.2.36 2002/06/02 21:06:24 easysw Exp $". +// End of "$Id: Fl.cxx,v 1.24.2.41.2.37 2002/06/07 16:57:21 easysw Exp $". // -- cgit v1.2.3