aardappel / treesheets

TreeSheets : Free Form Data Organizer (see strlen.com/treesheets)
zlib License
2.58k stars 193 forks source link

Keep track of images undergoing manipulation #620

Closed tobiolo closed 6 months ago

tobiolo commented 6 months ago

Prior to this commit, the image operation got executed on each image in the cells of the selection per cell.

The issue was that if the same image was referenced in multiple cells in the selection, the operation was executed per cell, thus on the same image multiple times.

In order to prevent this, keep track of all images and the cells referring to them in the selection, to execute the image operation only once on each image and to reset the layout of the referencing cells.

aardappel commented 6 months ago

Nice, good fix!

tobiolo commented 6 months ago

Nice, good fix!

Thanks for the kind feedback!

tobiolo commented 6 months ago

I added some small second commit to reset also children because then it is ensured that the layout is adjusted to the updated image dimensions in every case.

From my side, the PR would be ready to go. 😊

tobiolo commented 6 months ago

Merci and have a nice day! Beste Grüsse aus Olten Tobias