diff options
author | Pierre-Eric Pelloux-Prayer <pelloux@gmail.com> | 2015-02-08 18:34:04 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-02-09 20:06:40 +0000 |
commit | ad14ed0bbf80dd95dca6e0dea6edbe5fb68f9f26 (patch) | |
tree | e88632d1e2d80b90cbe72f36e405d8887f72586b | |
parent | 5d3f89c0264b0bb8fbe750051ccc1c57c199f6ad (diff) |
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 <mstahl@redhat.com>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r-- | sw/source/core/doc/notxtfrm.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/notxtfrm.cxx b/sw/source/core/doc/notxtfrm.cxx index 4c50dcd0835a..3b86993ec09b 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); } |