Scenario: Minor changes.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-09-03 11:47:46 +02:00
1 parent a412f2f18f
commit 8f0535dc5c
5 files changed
+22 -6

No files matched your search

+3 -2
View File
@@ -353,8 +353,8 @@ class GraphWidget(QGraphicsView):
if len(selectable_items) == 0:
if event.buttons() & Qt.LeftButton:
old_p = self.mapToScene(
int(self.m_origin_x),
int(self.m_origin_y)
float(self.m_origin_x),
float(self.m_origin_y)
)
new_p = self.mapToScene(event.pos())
translation = new_p - old_p
@@ -372,6 +372,7 @@ class GraphWidget(QGraphicsView):
dlg = WaitingDialog(
payload_fn=fn,
title=action_str,
trad=self._trad,
parent=self.parent
)
dlg.exec_()