[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [ksnapshot/frameworks] /: correct check
From:       Aaron Seigo <aseigo () kde ! org>
Date:       2015-03-02 14:00:28
Message-ID: E1YSQtY-0005Qn-Lj () scm ! kde ! org
[Download RAW message or body]

Git commit 751b19d8ce7d0622c66811a012bda8a02ff75de7 by Aaron Seigo.
Committed on 02/03/2015 at 13:58.
Pushed by aseigo into branch 'frameworks'.

correct check

M  +1    -1    ksnapshot.cpp

http://commits.kde.org/ksnapshot/751b19d8ce7d0622c66811a012bda8a02ff75de7

diff --git a/ksnapshot.cpp b/ksnapshot.cpp
index b297854..b76d4d9 100644
--- a/ksnapshot.cpp
+++ b/ksnapshot.cpp
@@ -620,7 +620,7 @@ void KSnapshot::grabCurrentScreen()
 
     const QRect geom = desktop->screenGeometry(screenId);
     //qDebug() << "Geometry2 = " << geom;
-    if (screenId >= screens.count()) {
+    if (screenId < screens.count()) {
         m_snapshot = screens[screenId]->grabWindow(desktop->winId(),
                      geom.x(), geom.y(), geom.width(), geom.height());
         grabPointerImage(geom.x(), geom.y());
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic