eric7/EricWidgets/EricMapWidget.py

branch
eric7
changeset 8647
cdbce48aded8
parent 8358
144a6b854f70
child 8719
6b316898a2ac
--- a/eric7/EricWidgets/EricMapWidget.py	Sun Sep 26 20:21:35 2021 +0200
+++ b/eric7/EricWidgets/EricMapWidget.py	Mon Sep 27 10:50:18 2021 +0200
@@ -308,7 +308,8 @@
         if self._master:
             offset = 0 if slider else 1
             vsb = self._master.verticalScrollBar()
-            return (value - vsb.minimum()) * self.scaleFactor(slider) + offset
+            return int((value - vsb.minimum()) * self.scaleFactor(slider) +
+                       offset)
         else:
             return value
     

eric ide

mercurial