Author: AlbrechtS
Date: 2011-11-28 04:55:29 -0800 (Mon, 28 Nov 2011)
New Revision: 9190
Log:
Fixed a potential crash if Fl_Double_Window::flush() was called before show().
Thanks to Mathieu Peyrega for the patch in fltk.general [1] on Nov 14, 2011,
for FLTK 1.3.
Modified:
branches/branch-3.0/src/fltk3/DoubleWindow.cxx
Modified: branches/branch-3.0/src/fltk3/DoubleWindow.cxx
===================================================================
--- branches/branch-3.0/src/fltk3/DoubleWindow.cxx 2011-11-28 12:53:18 UTC
(rev 9189)
+++ branches/branch-3.0/src/fltk3/DoubleWindow.cxx 2011-11-28 12:55:29 UTC
(rev 9190)
@@ -338,6 +338,7 @@
void fltk3::DoubleWindow::flush(int eraseoverlay) {
make_current(); // make sure fl_gc is non-zero
Fl_X *myi = Fl_X::i(this);
+ if (!myi) return; // window not yet created
if (!myi->other_xid) {
#if USE_XDBE
if (can_xdbe()) {
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit