BitmapScopedWriteAccess
Noel Grandin
noelgrandin at gmail.com
Wed Jan 15 07:22:39 UTC 2025
On Tue, 14 Jan 2025 at 22:32, Chris Sherlock <chris.sherlock79 at gmail.com>
wrote:
> Thanks, that is helpful but I still don’t understand why, when it is a
> scoped instance with RAII semantics, we need to run reset manually after
> we’ve finished using it.
>
So in the case of
commit 44dfcebde64b9edfa9f50eace34e5e1497ab9314
Author: Michael Weghorn <m.weghorn at posteo.de>
Date: Tue Jan 14 05:59:31 2025 +0100
Revert "vcl: remove unnecessary resets"
The problem is this line of code after the reset() calls:
m_aLastResult = BitmapEx(aContent, aAlpha);
And that line of code will assert if there are any currently active
BitmapWriteAccess objects.
So the BitmapWriteAccess objects have to be cleared/reset before the copy
can happen.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20250115/dcb4ef51/attachment.htm>
More information about the LibreOffice
mailing list