normalize rect to avoid negative width or height

This commit is contained in:
Martin Baeuml
2012-03-11 11:52:43 +01:00
parent c2663dc841
commit 076c637258
+1 -1
View File
@@ -392,7 +392,7 @@ class RectItem(BaseItem):
y = self._resize_start_rect.y()
h = self._resize_start_rect.height() + diff.y()
rect = QRectF(QPointF(x,y), QSizeF(w, h))
rect = QRectF(QPointF(x,y), QSizeF(w, h)).normalized()
self._updateRect(rect)
self.updateModel()