vcl/source/gdi/impgraph.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 410da49f0116dc76f9b8438af8109501e8a9dcd4 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Fri Jul 12 15:35:21 2024 +0500 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Fri Jul 12 14:14:59 2024 +0200 tdf#129244: fix thinko Change-Id: I838dfce7d9d329a938c09a2a114dbafffe149ace Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170405 Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> Tested-by: Jenkins diff --git a/vcl/source/gdi/impgraph.cxx b/vcl/source/gdi/impgraph.cxx index 57865bdf0bd4..de1b0492bd28 100644 --- a/vcl/source/gdi/impgraph.cxx +++ b/vcl/source/gdi/impgraph.cxx @@ -492,10 +492,10 @@ void ImpGraphic::updateBitmapFromVectorGraphic(const Size& pixelSize) const assert (maVectorGraphicData); // use maBitmapEx as local buffer for rendered vector image - if (pixelSize.Width() && pixelSize.Height() - && (maBitmapEx.IsEmpty() || maBitmapEx.GetSizePixel() != pixelSize)) + if (pixelSize.Width() && pixelSize.Height()) { - const_cast<ImpGraphic*>(this)->maBitmapEx = maVectorGraphicData->getBitmap(pixelSize); + if (maBitmapEx.IsEmpty() || maBitmapEx.GetSizePixel() != pixelSize) + const_cast<ImpGraphic*>(this)->maBitmapEx = maVectorGraphicData->getBitmap(pixelSize); } else // maVectorGraphicData caches the replacement, so updating unconditionally is cheap {