Make determination of selection handles more robust

This commit is contained in:
Rebecca Breu 2021-08-30 18:28:19 +02:00
parent 7f9fc8944c
commit c04e3706f5
2 changed files with 7 additions and 3 deletions

View file

@ -7,7 +7,7 @@ Added
-----
* You can now add plain text notes and paste text from the clipboard
* You can now open bee files from finder on MacOS (by Davin Andrs)
* You can now open bee files from finder on MacOS (by David Andrs)
Changed
@ -19,7 +19,9 @@ Changed
Fixed
-----
* Hovering over the scale handles of very narrow items now displays correct cursor
* Hovering over the scale handles of very narrow items now displays
correct cursor orientation
* Fix a rare crash while displaying selection handles
0.1.1 - 2021-07-18

View file

@ -48,7 +48,9 @@ class BeeItemMixin(SelectableMixin):
return self.isSelected()
def has_selection_handles(self):
return self.isSelected() and self.scene().has_single_selection()
return (self.isSelected()
and self.scene()
and self.scene().has_single_selection())
def selection_action_items(self):
"""The items affected by selection actions like scaling and rotating.