Author: hdu
Date: Thu Mar 21 16:01:35 2013
New Revision: 1459376

URL: http://svn.apache.org/r1459376
Log:
protect SalFrameView's isOpaque() method by an isAlive() check

Modified:
    openoffice/trunk/main/vcl/aqua/source/window/salframeview.mm

Modified: openoffice/trunk/main/vcl/aqua/source/window/salframeview.mm
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/vcl/aqua/source/window/salframeview.mm?rev=1459376&r1=1459375&r2=1459376&view=diff
==============================================================================
--- openoffice/trunk/main/vcl/aqua/source/window/salframeview.mm (original)
+++ openoffice/trunk/main/vcl/aqua/source/window/salframeview.mm Thu Mar 21 
16:01:35 2013
@@ -478,7 +478,13 @@ static AquaSalFrame* getMouseContainerFr
 
 -(BOOL)isOpaque
 {
-    return mpFrame ? (mpFrame->getClipPath() != 0 ? NO : YES) : YES;
+       if( !mpFrame)
+               return YES;
+       if( !AquaSalFrame::isAlive( mpFrame))
+               return YES;
+       if( !mpFrame->getClipPath())
+               return YES;
+       return NO;
 }
 
 // helper class similar to a vos::OGuard for the SalYieldMutex


Reply via email to