Merge remote-tracking branch 'hggit/python3' into python3
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Thu, 28 Nov 2024 14:39:26 +0100
changeset 4054 079099299603
parent 4053 eab8030a510b (diff)
parent 4051 8816aee01b07 (current diff)
child 4055 c325749651d1
Merge remote-tracking branch 'hggit/python3' into python3
--- a/.github/workflows/run_tests_in_docker.yml	Thu Nov 28 14:27:58 2024 +0100
+++ b/.github/workflows/run_tests_in_docker.yml	Thu Nov 28 14:39:26 2024 +0100
@@ -18,7 +18,7 @@
     - uses: actions/checkout@v3
       with:
           repository: beremiz/matiec
-          ref: 6bb2c339df6fd096d52f5342be228b0811fef771
+          ref: 8647c3bc66ebab5bc591f1404f31ade2cfca498f
           path: matiec
 
     - uses: actions/checkout@v3
--- a/editors/Viewer.py	Thu Nov 28 14:27:58 2024 +0100
+++ b/editors/Viewer.py	Thu Nov 28 14:39:26 2024 +0100
@@ -2474,8 +2474,8 @@
             elif not self.Debug and self.SelectedElement is not None:
                 movex, movey = move
                 if not event.AltDown() or event.ShiftDown():
-                    movex *= scaling[0]
-                    movey *= scaling[1]
+                    movex = int(movex * scaling[0])
+                    movey = int(movey * scaling[1])
                     if event.ShiftDown() and not event.AltDown():
                         movex *= 10
                         movey *= 10