Skip to content
Commit efc662e6 authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

Change exactBounds() to handle non-transparent default pixel properly

Now the semantics of exactBounds() has changed. In the case when
the default pixel is not fully transparent, now we do not return the
extent of the device. Instead, we return either the image bounds value,
or (if the device is bigger than the image) device's nonDefaultPixelArea().
Technically it looks like a union
(defaultBounds()->bounds() | nonDefaultPixelArea()).

This fixes a bug when exactBounds() were gradually growing during the
merge operations in:

BUG:344012
parent 92604b7e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment