svtools/source/graphic/grfcache.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 406004d3f58457a46107f84ec1f902e92364ba2e Author: Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk> Date: Tue Feb 13 21:36:01 2018 +0900 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 <c...@libreoffice.org> Reviewed-by: Tomaž Vajngerl <qui...@gmail.com> 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) ); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits