ecere: fixed null pointer crash with new nativeDecorations as default on ide exit...
authorRejean Loyer <rejean.loyer@gmail.com>
Tue, 6 Mar 2012 09:14:52 +0000 (04:14 -0500)
committerRejean Loyer <rejean.loyer@gmail.com>
Tue, 6 Mar 2012 13:55:10 +0000 (08:55 -0500)
ecere/src/gui/Window.ec

index 5044c23..f9bd289 100644 (file)
@@ -9245,7 +9245,7 @@ public:
       get { return (bool)nativeDecorations; }
       set { nativeDecorations = value; }
 #ifndef ECERE_VANILLA
-      isset { return (nativeDecorations && (rootWindow == this || (formDesigner && activeDesigner && parent == ((FormDesigner)activeDesigner.classDesigner).form.parent))) != style.fixed; }
+      isset { return (nativeDecorations && (rootWindow == this || (formDesigner && activeDesigner && ((FormDesigner)activeDesigner.classDesigner).form && parent == ((FormDesigner)activeDesigner.classDesigner).form.parent))) != style.fixed; }
 #endif
    };
    property bool manageDisplay { get { return (bool)manageDisplay; } set { manageDisplay = value; } };