summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/Whiteboard/FreehandLineItem.cpp')
-rw-r--r--Swift/QtUI/Whiteboard/FreehandLineItem.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Swift/QtUI/Whiteboard/FreehandLineItem.cpp b/Swift/QtUI/Whiteboard/FreehandLineItem.cpp
index bd53843..92c4005 100644
--- a/Swift/QtUI/Whiteboard/FreehandLineItem.cpp
+++ b/Swift/QtUI/Whiteboard/FreehandLineItem.cpp
@@ -32,6 +32,7 @@ namespace Swift {
void FreehandLineItem::setStartPoint(QPointF point)
{
+ prepareGeometryChange();
points_.clear();
points_.append(point);
QRectF rect(point, point);
@@ -41,6 +42,8 @@ namespace Swift {
void FreehandLineItem::lineTo(QPointF point)
{
+ prepareGeometryChange();
+
qreal x1, x2, y1, y2;
x1 = points_.last().x();
x2 = point.x();