Kaydet (Commit) 3650b66c authored tarafından Zolnai Tamás's avatar Zolnai Tamás

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
üst 5b3166ff
...@@ -840,7 +840,7 @@ SdrGrafObj& SdrGrafObj::operator=( const SdrGrafObj& rObj ) ...@@ -840,7 +840,7 @@ SdrGrafObj& SdrGrafObj::operator=( const SdrGrafObj& rObj )
aFilterName = rObj.aFilterName; aFilterName = rObj.aFilterName;
bMirrored = rObj.bMirrored; bMirrored = rObj.bMirrored;
if( rObj.pGraphicLink != NULL) if( rObj.IsLinkedGraphic() )
{ {
SetGraphicLink( aFileName, rObj.aReferer, aFilterName ); SetGraphicLink( aFileName, rObj.aReferer, aFilterName );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment