diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-10-09 14:28:24 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-10-09 18:07:31 +0200 |
commit | f2aa375696c69cd53698827015878412ad070def (patch) | |
tree | c7e33bca5fb8430ca7150f785e4567aeafbdc53a /sd | |
parent | 34e69a56daf031c1215fd7dd7c342dacb3badb1a (diff) |
Resolves: rhbz#1471983 fatal exception on older config without slide bg panel
Change-Id: Id437bdd8feac06da42c180ff4f7759ec282fa8d4
Reviewed-on: https://gerrit.libreoffice.org/43279
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/sidebar/SlideBackground.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sd/source/ui/sidebar/SlideBackground.cxx b/sd/source/ui/sidebar/SlideBackground.cxx index f98e5bed6894..3e3df8b06523 100644 --- a/sd/source/ui/sidebar/SlideBackground.cxx +++ b/sd/source/ui/sidebar/SlideBackground.cxx @@ -422,11 +422,14 @@ void SlideBackground::SetPanelTitle( const OUString& rTitle ) if ( !xPanels.is() ) return; - Reference<ui::XPanel> xPanel ( xPanels->getByName("SlideBackgroundPanel"), uno::UNO_QUERY); - if ( !xPanel.is() ) - return; + if (xPanels->hasByName("SlideBackgroundPanel")) + { + Reference<ui::XPanel> xPanel ( xPanels->getByName("SlideBackgroundPanel"), uno::UNO_QUERY); + if ( !xPanel.is() ) + return; - xPanel->setTitle( rTitle ); + xPanel->setTitle( rTitle ); + } } void SlideBackground::addListener() |