sw/source/core/doc/notxtfrm.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit ad14ed0bbf80dd95dca6e0dea6edbe5fb68f9f26 Author: Pierre-Eric Pelloux-Prayer <pell...@gmail.com> Date: Sun Feb 8 18:34:04 2015 +0100 sw: avoid temporary object creation to build GraphicPrimitive2D As drawinglayer::primitive2d::GraphicPrimitive2D constructor expects a GraphicObject ref, we can simply pass in rGrfObj instead of building a (implicit) temp GraphicObjet using the GetGraphic() result. Change-Id: I8c54f20804390c773fdf9406f534787ce7143e84 Reviewed-on: https://gerrit.libreoffice.org/14390 Tested-by: Michael Stahl <mst...@redhat.com> Reviewed-by: Michael Stahl <mst...@redhat.com> diff --git a/sw/source/core/doc/notxtfrm.cxx b/sw/source/core/doc/notxtfrm.cxx index 4c50dcd..3b86993 100644 --- a/sw/source/core/doc/notxtfrm.cxx +++ b/sw/source/core/doc/notxtfrm.cxx @@ -808,7 +808,7 @@ void paintGraphicUsingPrimitivesHelper(OutputDevice & rOutputDevice, { aContent[0] = new drawinglayer::primitive2d::GraphicPrimitive2D( aTargetTransform, - rGrfObj.GetGraphic(), + rGrfObj, rGraphicAttr); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits