do not return reference to a local object

regression introduced by fdb7fe63db

Change-Id: Id3f89b61b464763a37c5f063c0d541154ec40105
This commit is contained in:
David Tardon 2012-12-10 06:23:16 +01:00
parent 782c243045
commit 99de6a78be
2 changed files with 2 additions and 2 deletions

View file

@ -82,7 +82,7 @@ public:
virtual ~CompressGraphicsDialog();
SdrGrafObj* GetCompressedSdrGrafObj();
Graphic& GetCompressedGraphic();
Graphic GetCompressedGraphic();
};
#endif

View file

@ -346,7 +346,7 @@ SdrGrafObj* CompressGraphicsDialog::GetCompressedSdrGrafObj()
return NULL;
}
Graphic& CompressGraphicsDialog::GetCompressedGraphic()
Graphic CompressGraphicsDialog::GetCompressedGraphic()
{
if ( m_dResolution > 0 )
{