summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/python/shapes/shapes.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/python/shapes/shapes.py b/src/main/python/shapes/shapes.py
index 27f99b9..117ffb8 100644
--- a/src/main/python/shapes/shapes.py
+++ b/src/main/python/shapes/shapes.py
@@ -350,14 +350,14 @@ class LineGripItem(QGraphicsPathItem):
endPoint = item.parentItem().mapToScene(item.pos())
gap = 0
# restrict line to one grip
- if self.size is None and len(item.lines) > 0:
+ if item.size is None and len(item.lines) > 0:
break
# in case of rectangle grip
- if self.size and item.m_location in ["top", "bottom"]:
+ if item.size and item.m_location in ["top", "bottom"]:
mpos = self.mapToScene(mouseEvent.pos())
gap = (endPoint.x() - mpos.x()) / item.boundingRect().width()
endPoint.setX(mpos.x())
- elif self.size:
+ elif item.size:
mpos = self.mapToScene(mouseEvent.pos())
gap = (endPoint.y() - mpos.y()) / item.boundingRect().height()
endPoint.setY(mpos.y())