diff --git a/src/gui/Widgets/mapwidget.py b/src/gui/Widgets/mapwidget.py index df0d42e..b4ce2c1 100644 --- a/src/gui/Widgets/mapwidget.py +++ b/src/gui/Widgets/mapwidget.py @@ -136,4 +136,4 @@ def _drawPreloadScreen(self, p): text = 'Load an OSM file to begin!' fm = p.fontMetrics() w, h = fm.width(text), fm.height() - p.drawText(self.width()/2-w/2, self.height()/2+h/2, text) + p.drawText(int(self.width()/2-w/2), int(self.height()/2+h/2), text)