Snapshot/SnapshotFreehandGrabber.py

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

eric ide

mercurial