Skip to content

Commit

Permalink
Fix crash of swipe tool
Browse files Browse the repository at this point in the history
  • Loading branch information
kannes authored Sep 10, 2024
1 parent b0fa22c commit 5cb11cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kart/gui/mapswipetool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 5cb11cb

Please sign in to comment.