[Libreoffice-commits] .: vcl/unx
David Tardon
dtardon at kemper.freedesktop.org
Wed May 2 05:32:51 PDT 2012
vcl/unx/gtk/app/gtksys.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 85211f1ef30b07927d768348ce28ac34ade62f03
Author: David Tardon <dtardon at redhat.com>
Date: Wed May 2 14:26:11 2012 +0200
fdo#49365 correctly map monitor index back to screen
Change-Id: I396b34119a2686011640d5f15de616fe2a166237
diff --git a/vcl/unx/gtk/app/gtksys.cxx b/vcl/unx/gtk/app/gtksys.cxx
index 3927dbf..538107f 100644
--- a/vcl/unx/gtk/app/gtksys.cxx
+++ b/vcl/unx/gtk/app/gtksys.cxx
@@ -92,7 +92,7 @@ GtkSalSystem::getScreenMonitorFromIdx (GdkDisplay *pDisplay, int nIdx, gint &nMo
pScreen = gdk_display_get_screen (pDisplay, i);
if (!pScreen)
break;
- if (nIdx > gdk_screen_get_n_monitors (pScreen))
+ if (nIdx >= gdk_screen_get_n_monitors (pScreen))
nIdx -= gdk_screen_get_n_monitors (pScreen);
else
break;
More information about the Libreoffice-commits
mailing list