mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 03:09:08 +00:00
Layer::erase_selection used to erase the entire bounding box of the selection. With the add/subtract merge modes for the selection tool it is possible to create selections which are not rectangular. This leads to deleting pixels that were not selected. This change adjusts the erase behavior to walk the selection rect and check if a pixel is selected or not before deleting.
10 KiB
10 KiB