diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2017-02-07 13:29:46 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2017-02-07 18:56:16 +0000 |
commit | 58d4a3122ce59c68aa7a4b7e09f76bf15865be9b (patch) | |
tree | 46a67d309214ed71e3a86abb1e65ce7964264741 /sfx2/source/sidebar/Panel.cxx | |
parent | 555e1ff4cc84682ea73f9976f8e3c6f1d0f22590 (diff) |
tdf#104870 - keep reference on the TitleBar while setting title.
Unlikely to fix the issue, but may help.
Change-Id: I3c319f550e86f2ab731b072d86d258dca12d34fa
Reviewed-on: https://gerrit.libreoffice.org/33998
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'sfx2/source/sidebar/Panel.cxx')
-rw-r--r-- | sfx2/source/sidebar/Panel.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sfx2/source/sidebar/Panel.cxx b/sfx2/source/sidebar/Panel.cxx index b87d0ddb57e4..fa75db898742 100644 --- a/sfx2/source/sidebar/Panel.cxx +++ b/sfx2/source/sidebar/Panel.cxx @@ -70,6 +70,7 @@ Panel::Panel(const PanelDescriptor& rPanelDescriptor, Panel::~Panel() { disposeOnce(); + assert(!mpTitleBar); } void Panel::ApplySettings(vcl::RenderContext& rRenderContext) @@ -99,9 +100,9 @@ void Panel::dispose() vcl::Window::dispose(); } -PanelTitleBar* Panel::GetTitleBar() const +VclPtr<PanelTitleBar> Panel::GetTitleBar() const { - return mpTitleBar.get(); + return mpTitleBar; } void Panel::SetUIElement (const Reference<ui::XUIElement>& rxElement) |