Skip to content

Commit

Permalink
Merge pull request #117 from kannes/fix-swipe-crash
Browse files Browse the repository at this point in the history
Fix crash of swipe tool
  • Loading branch information
hamishcampbell authored Oct 31, 2024
2 parents b0fa22c + 5cb11cb commit 360f01f
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 360f01f

Please sign in to comment.