diff options
| -rw-r--r-- | sigmodr/widgets/mapeditor/ShapeItem.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sigmodr/widgets/mapeditor/ShapeItem.cpp b/sigmodr/widgets/mapeditor/ShapeItem.cpp index 45bf662a..7755c0fe 100644 --- a/sigmodr/widgets/mapeditor/ShapeItem.cpp +++ b/sigmodr/widgets/mapeditor/ShapeItem.cpp @@ -36,6 +36,12 @@ ShapeItem::ShapeItem(const Shape shape) : m_xShear(1), m_yShear(1) { + if ((m_shape == PolyLine) || (m_shape == Polygon)) + { + m_points.append(QPointF(0, 0)); + if (m_shape == Polygon) + m_points.append(QPointF(0, 0)); + } recreatePath(); setFlags(ItemIsMovable | ItemIsSelectable); setOpacity(.5); |
