diff options
-rw-r--r-- | vcl/quartz/salgdicommon.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/quartz/salgdicommon.cxx b/vcl/quartz/salgdicommon.cxx index 8cbbf657708c..ac65c7727f5d 100644 --- a/vcl/quartz/salgdicommon.cxx +++ b/vcl/quartz/salgdicommon.cxx @@ -1693,7 +1693,7 @@ void AquaSalGraphics::initResolution( NSWindow* ) if( pScreen == nil ) { NSArray* pScreens = [NSScreen screens]; - if( pScreens ) + if( pScreens && [pScreens count] > 0) pScreen = [pScreens objectAtIndex: 0]; } |