diff options
Diffstat (limited to 'dbaccess/source/ui/app/AppDetailPageHelper.hxx')
-rw-r--r-- | dbaccess/source/ui/app/AppDetailPageHelper.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/ui/app/AppDetailPageHelper.hxx b/dbaccess/source/ui/app/AppDetailPageHelper.hxx index 92202ecadcd3..f9467ccd57de 100644 --- a/dbaccess/source/ui/app/AppDetailPageHelper.hxx +++ b/dbaccess/source/ui/app/AppDetailPageHelper.hxx @@ -49,7 +49,7 @@ namespace dbaui class OPreviewWindow : public Window { - GraphicObject m_aGraphicObj; + rtl::Reference<GraphicObject> m_xGraphicObj; Rectangle m_aPreviewRect; /** gets the graphic cnter rect @@ -71,7 +71,7 @@ namespace dbaui // window overloads virtual void Paint(const Rectangle& rRect); - void setGraphic(const Graphic& _rGraphic ) { m_aGraphicObj.SetGraphic(_rGraphic); } + void setGraphic(const Graphic& _rGraphic ) { m_xGraphicObj = GraphicObject::Create(_rGraphic); } }; //================================================================== // A helper class for the controls in the detail page. |