diff options
-rw-r--r-- | slideshow/source/engine/OGLTrans/mac/OGLTrans_TransitionerImpl.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slideshow/source/engine/OGLTrans/mac/OGLTrans_TransitionerImpl.mm b/slideshow/source/engine/OGLTrans/mac/OGLTrans_TransitionerImpl.mm index 3a260e314976..06b44c7fe85a 100644 --- a/slideshow/source/engine/OGLTrans/mac/OGLTrans_TransitionerImpl.mm +++ b/slideshow/source/engine/OGLTrans/mac/OGLTrans_TransitionerImpl.mm @@ -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; |