do not return reference to a local object
regression introduced by fdb7fe63db
Change-Id: Id3f89b61b464763a37c5f063c0d541154ec40105
This commit is contained in:
parent
782c243045
commit
99de6a78be
2 changed files with 2 additions and 2 deletions
|
@ -82,7 +82,7 @@ public:
|
|||
virtual ~CompressGraphicsDialog();
|
||||
|
||||
SdrGrafObj* GetCompressedSdrGrafObj();
|
||||
Graphic& GetCompressedGraphic();
|
||||
Graphic GetCompressedGraphic();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -346,7 +346,7 @@ SdrGrafObj* CompressGraphicsDialog::GetCompressedSdrGrafObj()
|
|||
return NULL;
|
||||
}
|
||||
|
||||
Graphic& CompressGraphicsDialog::GetCompressedGraphic()
|
||||
Graphic CompressGraphicsDialog::GetCompressedGraphic()
|
||||
{
|
||||
if ( m_dResolution > 0 )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue