summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorZolnai Tamás <tamas.zolnai@collabora.com>2014-12-08 03:11:18 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-12-25 11:49:59 +0000
commitced7bcbf53c302a5fd0203216a1b4fda18059f6f (patch)
tree4c4ecf2c7502cc44924f0834ec82d5b60fcb9888 /svx
parent9ca0a30de75b0b563c95c6ff8863b1c4f7ed1c6b (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>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdograf.cxx2
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 );
}