[Libreoffice-commits] .: svx/inc svx/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Dec 9 21:32:00 PST 2012


 svx/inc/svx/compressgraphicdialog.hxx       |    2 +-
 svx/source/dialog/compressgraphicdialog.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 99de6a78be62ad2a042270274b060e0c7ce7a45c
Author: David Tardon <dtardon at redhat.com>
Date:   Mon Dec 10 06:23:16 2012 +0100

    do not return reference to a local object
    
    regression introduced by fdb7fe63db5ba17036a71fe4f7f25f834bef8f95
    
    Change-Id: Id3f89b61b464763a37c5f063c0d541154ec40105

diff --git a/svx/inc/svx/compressgraphicdialog.hxx b/svx/inc/svx/compressgraphicdialog.hxx
index 231947e..af5dae5 100644
--- a/svx/inc/svx/compressgraphicdialog.hxx
+++ b/svx/inc/svx/compressgraphicdialog.hxx
@@ -82,7 +82,7 @@ public:
     virtual ~CompressGraphicsDialog();
 
     SdrGrafObj* GetCompressedSdrGrafObj();
-    Graphic&    GetCompressedGraphic();
+    Graphic     GetCompressedGraphic();
 };
 
 #endif
diff --git a/svx/source/dialog/compressgraphicdialog.cxx b/svx/source/dialog/compressgraphicdialog.cxx
index 387a64e..af70c4d 100644
--- a/svx/source/dialog/compressgraphicdialog.cxx
+++ b/svx/source/dialog/compressgraphicdialog.cxx
@@ -346,7 +346,7 @@ SdrGrafObj* CompressGraphicsDialog::GetCompressedSdrGrafObj()
     return NULL;
 }
 
-Graphic& CompressGraphicsDialog::GetCompressedGraphic()
+Graphic CompressGraphicsDialog::GetCompressedGraphic()
 {
     if ( m_dResolution > 0  )
     {


More information about the Libreoffice-commits mailing list