summaryrefslogtreecommitdiffstats
path: root/vcl/source/window/wrkwin.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window/wrkwin.cxx')
-rwxr-xr-xvcl/source/window/wrkwin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/wrkwin.cxx b/vcl/source/window/wrkwin.cxx
index 0e667de73067..5c50652afbe5 100755
--- a/vcl/source/window/wrkwin.cxx
+++ b/vcl/source/window/wrkwin.cxx
@@ -181,7 +181,7 @@ void WorkWindow::ShowFullScreenMode( sal_Bool bFullScreenMode, sal_Int32 nDispla
if ( !mbFullScreenMode == !bFullScreenMode )
return;
- if( (nDisplay < 0)
+ if( (nDisplay < -1)
|| (nDisplay >= static_cast<sal_Int32>(Application::GetScreenCount()) ) )
{
nDisplay = GetScreenNumber();