summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/source/gdi/vectorgraphicdata.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/gdi/vectorgraphicdata.cxx b/vcl/source/gdi/vectorgraphicdata.cxx
index 246356cb3a52..8b9b2b7522d9 100644
--- a/vcl/source/gdi/vectorgraphicdata.cxx
+++ b/vcl/source/gdi/vectorgraphicdata.cxx
@@ -185,6 +185,9 @@ void VectorGraphicData::ensureReplacement()
BitmapEx VectorGraphicData::getBitmap(const Size& pixelSize) const
{
+ if (!maReplacement.IsEmpty() && maReplacement.GetSizePixel() == pixelSize)
+ return maReplacement;
+
if (getType() == VectorGraphicDataType::Pdf)
{
// use PDFium directly