Copying linked graphic between components is broken

IsLinkedGraphic() is better to use here.

Reproducer steps:
-Insert an image to Impress as a link.
-Copy this image (CTRL+C & CTRL+V) to Writer.
Result: Image is not displayed.

Change-Id: Iaf9b686b5c87caf5a0cc15425f8c5988f857bfe6
This commit is contained in:
Zolnai Tamás
2014-12-08 03:11:18 +01:00
parent 5b3166ffd3
commit 3650b66c36

View File

@@ -840,7 +840,7 @@ SdrGrafObj& SdrGrafObj::operator=( const SdrGrafObj& rObj )
aFilterName = rObj.aFilterName;
bMirrored = rObj.bMirrored;
if( rObj.pGraphicLink != NULL)
if( rObj.IsLinkedGraphic() )
{
SetGraphicLink( aFileName, rObj.aReferer, aFilterName );
}