summaryrefslogtreecommitdiff
path: root/src/main/python/utils/canvas.py
diff options
context:
space:
mode:
authorBlaine2020-06-09 11:08:32 +0530
committerBlaine2020-06-09 11:08:32 +0530
commit3ea92365befd56852288fdaac5d551c4b96d269a (patch)
tree1471d88a2b8496785912a35ea497a0963b896676 /src/main/python/utils/canvas.py
parent994a0f5c1fb80d0065b8fd3134111ca8790b46bd (diff)
downloadChemical-PFD-3ea92365befd56852288fdaac5d551c4b96d269a.tar.gz
Chemical-PFD-3ea92365befd56852288fdaac5d551c4b96d269a.tar.bz2
Chemical-PFD-3ea92365befd56852288fdaac5d551c4b96d269a.zip
2nd fix
Diffstat (limited to 'src/main/python/utils/canvas.py')
-rw-r--r--src/main/python/utils/canvas.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/python/utils/canvas.py b/src/main/python/utils/canvas.py
index 10601f2..a83aeb2 100644
--- a/src/main/python/utils/canvas.py
+++ b/src/main/python/utils/canvas.py
@@ -128,8 +128,8 @@ class canvas(QWidget):
"ppi": self._ppi,
"canvasSize": self._canvasSize,
"ObjectName": self.objectName(),
- "symbols": [dumps(i, indent=4, cls=JSON_Typer) for i in self.painter.items() if isinstance(i, shapes.NodeItem)],
- "lines": [dumps(i, indent=4, cls=JSON_Typer) for i in self.painter.items() if isinstance(i, shapes.Line)],
+ "symbols": [i for i in self.painter.items() if isinstance(i, shapes.NodeItem)],
+ "lines": [i for i in self.painter.items() if isinstance(i, shapes.Line)],
# "lineLabels": [i.__getstate__() for i in self.painter.items() if isinstance(i, shapes.LineLabel)],
# "itemLabels": [i.__getstate__() for i in self.painter.items() if isinstance(i, shapes.itemLabel)]
}