diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/python/shapes/shapes.py | 3 | ||||
-rw-r--r-- | src/main/python/utils/canvas.py | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/main/python/shapes/shapes.py b/src/main/python/shapes/shapes.py index f47ea28..01ec196 100644 --- a/src/main/python/shapes/shapes.py +++ b/src/main/python/shapes/shapes.py @@ -674,7 +674,8 @@ class NodeItem(QGraphicsSvgItem): "pos": (self.pos().x(), self.pos().y()), "lineGripItems": [(hex(id(i)), i.m_index) for i in self.lineGripItems], "label": self.label, - "rotation": self.rotation + "rotation": self.rotation, + "flipstate": self.flipState } def __setstate__(self, dict): diff --git a/src/main/python/utils/canvas.py b/src/main/python/utils/canvas.py index a75570c..b60f11c 100644 --- a/src/main/python/utils/canvas.py +++ b/src/main/python/utils/canvas.py @@ -166,6 +166,7 @@ class canvas(customView): graphicLabel.__setstate__(item['label']) self.painter.addItem(graphicLabel) graphic.rotation = item['rotation'] + graphic.flipH, graphic.flipV = item['flipstate'] for item in dict['lines']: line = shapes.Line(QPointF(*item['startPoint']), QPointF(*item['endPoint'])) |