[Libreoffice-commits] core.git: sw/source

Pierre-Eric Pelloux-Prayer pelloux at gmail.com
Mon Feb 9 12:07:06 PST 2015


 sw/source/core/doc/notxtfrm.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ad14ed0bbf80dd95dca6e0dea6edbe5fb68f9f26
Author: Pierre-Eric Pelloux-Prayer <pelloux at 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 <mstahl at redhat.com>
    Reviewed-by: Michael Stahl <mstahl at 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);
     }
 


More information about the Libreoffice-commits mailing list