summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-06-02 20:49:47 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-06-02 20:49:47 +0000
commit8c120555fad327cccd26e5ef42fea9eb13f91176 (patch)
tree4be18d17184f6a46ecd8dc0957193304a3bb0d2f /src
parent839dfca77853da7ee76e585e9044e5bbf63a678f (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/Fl.cxx6
1 files changed, 3 insertions, 3 deletions
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 <FL/fl_draw.H>
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 $".
//