diff options
author | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-12-08 03:11:18 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-12-25 11:49:59 +0000 |
commit | ced7bcbf53c302a5fd0203216a1b4fda18059f6f (patch) | |
tree | 4c4ecf2c7502cc44924f0834ec82d5b60fcb9888 | |
parent | 9ca0a30de75b0b563c95c6ff8863b1c4f7ed1c6b (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
(cherry picked from commit 3650b66c366177877d30f6aae83a33bf683d3457)
Reviewed-on: https://gerrit.libreoffice.org/13609
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
-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 712a5e1ccb65..1a27c4cc3f02 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 ); } |