diff options
Diffstat (limited to 'vcl/source/graphic')
-rw-r--r-- | vcl/source/graphic/Manager.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vcl/source/graphic/Manager.cxx b/vcl/source/graphic/Manager.cxx index 5942b5cb8784..1be52a7e987c 100644 --- a/vcl/source/graphic/Manager.cxx +++ b/vcl/source/graphic/Manager.cxx @@ -109,6 +109,15 @@ sal_Int64 Manager::getGraphicSizeBytes(const ImpGraphic* pImpGraphic) { if (!pImpGraphic->isAvailable()) return 0; + + // Hack / Workaround - don't count PDF vector graphic to preven swapping + if (pImpGraphic->getVectorGraphicData() + && pImpGraphic->getVectorGraphicData()->getVectorGraphicDataType() + == VectorGraphicDataType::Pdf) + { + return 0; + } + return pImpGraphic->ImplGetSizeBytes(); } |