From 923f9fe353418b18c7fea91b725f3ab602d212e2 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 10 Jan 2008 21:53:34 +0000 Subject: STR #1854: fixed win32 issue with possible NULL pointer git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6017 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_win32.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index 27a14edc7..23b90e1fc 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -1122,7 +1122,7 @@ void Fl_Window::resize(int X,int Y,int W,int H) { redraw(); // only wait for exposure if this window has a size - a window // with no width or height will never get an exposure event - if (W>0 && H>0) + if (i && W>0 && H>0) i->wait_for_expose = 1; } } else { -- cgit v1.2.3