1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Fixed unexpected behavior of resize_selection() (#1132)

* Fixed unexpected behavior of resize_selection()

* Fix typo

---------

Co-authored-by: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com>
This commit is contained in:
Variable 2024-11-11 02:12:09 +05:00 committed by GitHub
parent af703d486e
commit 5fa97988b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -534,6 +534,10 @@ class SelectionAPI:
Global.canvas.selection.move_borders_start() Global.canvas.selection.move_borders_start()
else: else:
Global.canvas.selection.transform_content_start() Global.canvas.selection.transform_content_start()
if Global.canvas.selection.original_bitmap.is_empty(): # To avoid copying twice.
Global.canvas.selection.original_bitmap.copy_from(Global.current_project.selection_map)
Global.canvas.selection.big_bounding_rectangle.size = new_size Global.canvas.selection.big_bounding_rectangle.size = new_size
Global.canvas.selection.resize_selection() Global.canvas.selection.resize_selection()
Global.canvas.selection.move_borders_end() Global.canvas.selection.move_borders_end()