From 85211f1ef30b07927d768348ce28ac34ade62f03 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Wed, 2 May 2012 14:26:11 +0200 Subject: [PATCH] fdo#49365 correctly map monitor index back to screen Change-Id: I396b34119a2686011640d5f15de616fe2a166237 --- vcl/unx/gtk/app/gtksys.cxx | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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; -- 1.7.7.6