You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I noticed is not possible to edit text labels in the topology due to unexpected value type for item rotation.
Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/gns3/graphics_view.py", line 1444, in textEditActionSlot text_edit_dialog = TextEditorDialog(self._main_window, items) File "/usr/lib/python3.10/site-packages/gns3/dialogs/text_editor_dialog.py", line 47, in __init__ self.uiRotationSpinBox.setValue(first_item.rotation()) TypeError: setValue(self, int): argument 1 has unexpected type 'float'
I do not understand where the float is coming from as based on the GUI debug, the rotation is clearly set to int 0. Event received from project stream: {'action': 'drawing.updated', 'event': {'drawing_id': '7763da28-5633-4e37-bb85-0eb609dc7b47', 'locked': False, 'project_id': '3931151b-c400-445c-9d38-de734874ea08', 'rotation': 0, 'x': -247, 'y': -64, 'z': 2}}
GNS3 version and operating system (please complete the following information):
OS: Linux Manjaro - KDE
GNS3-GUI: 2.2.29
To Reproduce
Right-click on any text label in topology in new or preexisting topology
Click on 'Text Edit'
Screenshots or videos
Additional context
A quick workaround I found was to change:
Describe the bug
I noticed is not possible to edit text labels in the topology due to unexpected value type for item rotation.
Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/gns3/graphics_view.py", line 1444, in textEditActionSlot text_edit_dialog = TextEditorDialog(self._main_window, items) File "/usr/lib/python3.10/site-packages/gns3/dialogs/text_editor_dialog.py", line 47, in __init__ self.uiRotationSpinBox.setValue(first_item.rotation()) TypeError: setValue(self, int): argument 1 has unexpected type 'float'
I do not understand where the float is coming from as based on the GUI debug, the rotation is clearly set to int 0.
Event received from project stream: {'action': 'drawing.updated', 'event': {'drawing_id': '7763da28-5633-4e37-bb85-0eb609dc7b47', 'locked': False, 'project_id': '3931151b-c400-445c-9d38-de734874ea08', 'rotation': 0, 'x': -247, 'y': -64, 'z': 2}}
GNS3 version and operating system (please complete the following information):
To Reproduce
Screenshots or videos
Additional context
A quick workaround I found was to change:
gns3-gui/gns3/dialogs/text_editor_dialog.py
Line 47 in da8adba
to:
self.uiRotationSpinBox.setValue(int(first_item.rotation()))
The text was updated successfully, but these errors were encountered: