Avoid crash

(But the OpenGL transitions aren't really usable on the Mac. At least
not when built against the 10.7 SDK.)

Change-Id: I6b65b417a40be182b7b4077b420b4bdb52fb67c4
This commit is contained in:
Tor Lillqvist
2013-01-11 11:05:31 +02:00
parent 36c5abb012
commit 4d23222b15

View File

@@ -398,7 +398,7 @@ bool OGLTransitionerImpl::initWindowFromSlideShowView( const Reference< presenta
awt::Rectangle aCanvasArea = mxView->getCanvasArea();
// needed in windowed mode only ?
if( (aCanvasArea.X != 0) && (aCanvasArea.Y != 0) )
if( (pWindow != NULL) && (aCanvasArea.X != 0) && (aCanvasArea.Y != 0) )
pWindow->setPosSizePixel(aCanvasArea.X, aCanvasArea.Y, aCanvasArea.Width, aCanvasArea.Height);
GLWin.Width = aCanvasArea.Width;