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/UnoDeck.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/UnoDeck.cxx')
-rw-r--r-- | sfx2/source/sidebar/UnoDeck.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/sidebar/UnoDeck.cxx b/sfx2/source/sidebar/UnoDeck.cxx index facddd25fa65..a87dcb7194d8 100644 --- a/sfx2/source/sidebar/UnoDeck.cxx +++ b/sfx2/source/sidebar/UnoDeck.cxx @@ -53,7 +53,7 @@ OUString SAL_CALL SfxUnoDeck::getTitle() pDeck = pSidebarController->GetResourceManager()->GetDeckDescriptor(mDeckId)->mpDeck; } - DeckTitleBar* pTitleBar = pDeck->GetTitleBar(); + VclPtr<DeckTitleBar> pTitleBar = pDeck->GetTitleBar(); return pTitleBar->GetTitle(); } @@ -69,7 +69,7 @@ void SAL_CALL SfxUnoDeck::setTitle( const OUString& newTitle ) if (xDeckDescriptor) { Deck* pDeck = xDeckDescriptor->mpDeck; - DeckTitleBar* pTitleBar = pDeck->GetTitleBar(); + VclPtr<DeckTitleBar> pTitleBar = pDeck->GetTitleBar(); pTitleBar->SetTitle(newTitle); xDeckDescriptor->msTitle = newTitle; |