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:
@@ -398,7 +398,7 @@ bool OGLTransitionerImpl::initWindowFromSlideShowView( const Reference< presenta
|
|||||||
awt::Rectangle aCanvasArea = mxView->getCanvasArea();
|
awt::Rectangle aCanvasArea = mxView->getCanvasArea();
|
||||||
|
|
||||||
// needed in windowed mode only ?
|
// 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);
|
pWindow->setPosSizePixel(aCanvasArea.X, aCanvasArea.Y, aCanvasArea.Width, aCanvasArea.Height);
|
||||||
|
|
||||||
GLWin.Width = aCanvasArea.Width;
|
GLWin.Width = aCanvasArea.Width;
|
||||||
|
Reference in New Issue
Block a user