Snapshot/SnapshotRegionGrabber.py

changeset 3039
8dd0165d805d
parent 3034
7ce719013078
child 3060
5883ce99ee12
child 3160
209a07d7e401
--- a/Snapshot/SnapshotRegionGrabber.py	Sat Oct 19 16:51:12 2013 +0200
+++ b/Snapshot/SnapshotRegionGrabber.py	Sat Oct 19 17:42:18 2013 +0200
@@ -195,7 +195,7 @@
             boundingRect.moveCenter(r.center())
             textRect.moveCenter(r.center())
         elif r.y() - 3 > textRect.height() and \
-             r.x() + textRect.width() < self.rect().width():
+                r.x() + textRect.width() < self.rect().width():
             # on top, left aligned
             boundingRect.moveBottomLeft(QPoint(r.x(), r.y() - 3))
             textRect.moveBottomLeft(QPoint(r.x() + 2, r.y() - 3))
@@ -204,7 +204,7 @@
             boundingRect.moveTopRight(QPoint(r.x() - 3, r.y()))
             textRect.moveTopRight(QPoint(r.x() - 5, r.y()))
         elif r.bottom() + 3 + textRect.height() < self.rect().bottom() and \
-             r.right() > textRect.width():
+                r.right() > textRect.width():
             # at bottom, right aligned
             boundingRect.moveTopRight(QPoint(r.right(), r.bottom() + 3))
             textRect.moveTopRight(QPoint(r.right() - 2, r.bottom() + 3))

eric ide

mercurial