From 6286e596c021a809888aace93aefc4582989cd71 Mon Sep 17 00:00:00 2001 From: grossmj Date: Sat, 15 Jan 2022 18:55:38 +1030 Subject: [PATCH] Fix QPoint() as unexpected type 'float'. Fixes #3283 --- gns3/graphics_view.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gns3/graphics_view.py b/gns3/graphics_view.py index a70e59e4..799954d6 100644 --- a/gns3/graphics_view.py +++ b/gns3/graphics_view.py @@ -1411,7 +1411,15 @@ class GraphicsView(QtWidgets.QGraphicsView): type = "rect" else: type = "image" - self.createDrawingItem(type, item.pos().x() + 20, item.pos().y() + 20, item.zValue(), rotation=item.rotation(), svg=item.toSvg()) + + self.createDrawingItem( + type, + int(item.pos().x() + 20), + int(item.pos().y()) + 20, + item.zValue(), + rotation=item.rotation(), + svg=item.toSvg() + ) elif isinstance(item, NodeItem): item.node().duplicate(item.pos().x() + 20, item.pos().y() + 20, item.zValue())