diff options
Diffstat (limited to 'vcl/source/gdi/impgraph.cxx')
-rw-r--r-- | vcl/source/gdi/impgraph.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vcl/source/gdi/impgraph.cxx b/vcl/source/gdi/impgraph.cxx index 8c66d1a0e548..933a0a60ffe9 100644 --- a/vcl/source/gdi/impgraph.cxx +++ b/vcl/source/gdi/impgraph.cxx @@ -51,6 +51,8 @@ #define GRAPHIC_FORMAT_50 static_cast<sal_uInt32>(COMPAT_FORMAT( 'G', 'R', 'F', '5' )) #define NATIVE_FORMAT_50 static_cast<sal_uInt32>(COMPAT_FORMAT( 'N', 'A', 'T', '5' )) +using namespace com::sun::star; + struct ImpSwapFile { INetURLObject aSwapURL; @@ -132,6 +134,7 @@ ImpGraphic::ImpGraphic( const ImpGraphic& rImpGraphic ) : mpAnimation = nullptr; maSvgData = rImpGraphic.maSvgData; + maPdfData = rImpGraphic.maPdfData; } ImpGraphic::ImpGraphic( const Bitmap& rBitmap ) : @@ -256,6 +259,7 @@ ImpGraphic& ImpGraphic::operator=( const ImpGraphic& rImpGraphic ) mpGfxLink = nullptr; maSvgData = rImpGraphic.maSvgData; + maPdfData = rImpGraphic.maPdfData; } return *this; @@ -304,6 +308,10 @@ bool ImpGraphic::operator==( const ImpGraphic& rImpGraphic ) const } } } + else if (maPdfData.hasElements()) + { + bRet = maPdfData == rImpGraphic.maPdfData; + } else if( mpAnimation ) { if( rImpGraphic.mpAnimation && ( *rImpGraphic.mpAnimation == *mpAnimation ) ) @@ -349,6 +357,7 @@ void ImpGraphic::ImplClearGraphics( bool bCreateSwapInfo ) } maSvgData.reset(); + maPdfData = uno::Sequence<sal_Int8>(); } void ImpGraphic::ImplClear() |