summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2018-02-13 21:36:01 +0900
committerTomaž Vajngerl <quikee@gmail.com>2018-02-13 20:29:48 +0100
commit406004d3f58457a46107f84ec1f902e92364ba2e (patch)
tree2a55b0f6e816ee349276d442525ca2c579c3176b /svtools
parent075e2d8b8d98b1c6daa430e9b9a396b15ba22837 (diff)
pass originURL to the substitue graphic - work-around
We need to pretend that the substitue graphic has a originURL of the original for now. Once Graphic will handle all the swapping and substitution this won't be necessary anymore. Change-Id: I9590b741c94d06d1b484273cc4ba5517951b77ec Reviewed-on: https://gerrit.libreoffice.org/49647 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/graphic/grfcache.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/svtools/source/graphic/grfcache.cxx b/svtools/source/graphic/grfcache.cxx
index 91668a3956a4..430c2318888b 100644
--- a/svtools/source/graphic/grfcache.cxx
+++ b/svtools/source/graphic/grfcache.cxx
@@ -305,7 +305,9 @@ void GraphicCacheEntry::AddGraphicObjectReference( const GraphicObject& rObj, Gr
if( mbSwappedAll )
mbSwappedAll = !ImplInit( rObj );
+ OUString rOriginURL = rObj.GetGraphic().getOriginURL();
ImplFillSubstitute( rSubstitute );
+ rSubstitute.setOriginURL(rOriginURL);
maGraphicObjectList.push_back( const_cast<GraphicObject*>(&rObj) );
}