From 8c120555fad327cccd26e5ef42fea9eb13f91176 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sun, 2 Jun 2002 20:49:47 +0000 Subject: Need to make sure window() is not NULL when marking damage in the window. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2277 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Fl.cxx b/src/Fl.cxx index d24ec7505..e34395af4 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl.cxx,v 1.24.2.41.2.34 2002/06/02 17:52:36 easysw Exp $" +// "$Id: Fl.cxx,v 1.24.2.41.2.35 2002/06/02 20:49:47 easysw Exp $" // // Main event handling code for the Fast Light Tool Kit (FLTK). // @@ -825,7 +825,7 @@ void Fl::paste(Fl_Widget &receiver) { #include void Fl_Widget::redraw() { - if (box() == FL_NO_BOX) { + if (window() && box() == FL_NO_BOX) { // Widgets with the FL_NO_BOX boxtype need a parent to // redraw, since it is responsible for redrawing the // background... @@ -928,5 +928,5 @@ void Fl_Window::flush() { } // -// End of "$Id: Fl.cxx,v 1.24.2.41.2.34 2002/06/02 17:52:36 easysw Exp $". +// End of "$Id: Fl.cxx,v 1.24.2.41.2.35 2002/06/02 20:49:47 easysw Exp $". // -- cgit v1.2.3