From 5cb11cb43ebcb42d56117b215341e926a4ccf2f6 Mon Sep 17 00:00:00 2001 From: Hannes Date: Tue, 10 Sep 2024 15:00:43 +0200 Subject: [PATCH] Fix crash of swipe tool QLine does not accept floats anymore nowadays, which lead to a crash in https://github.com/koordinates/kart-qgis-plugin/blob/b0fa22c878380c29b13e8f9bc4c16c9f320df36d/kart/gui/swipemap.py#L39 --- kart/gui/mapswipetool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kart/gui/mapswipetool.py b/kart/gui/mapswipetool.py index 84c7478..9ecc957 100644 --- a/kart/gui/mapswipetool.py +++ b/kart/gui/mapswipetool.py @@ -35,8 +35,8 @@ def activate(self): self.setLayersSwipe() self.swipe.setIsVertical(True) self.swipe.setLength( - self.swipe.boundingRect().width() / 2, - self.swipe.boundingRect().height() / 2, + int(self.swipe.boundingRect().width() / 2), + int(self.swipe.boundingRect().height() / 2), ) def deactivate(self):