diff options
author | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-12-08 03:11:18 +0100 |
---|---|---|
committer | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-12-08 15:56:35 +0100 |
commit | 3650b66c366177877d30f6aae83a33bf683d3457 (patch) | |
tree | 0f059760b29cfb26828b5cd59b0dce6ea12761b8 | |
parent | 5b3166ffd314a68afdc4f464312606afc881ac89 (diff) |
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
-rw-r--r-- | svx/source/svdraw/svdograf.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx index a353e0f9fd66..b60cdd18ceca 100644 --- a/svx/source/svdraw/svdograf.cxx +++ b/svx/source/svdraw/svdograf.cxx @@ -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 ); } |