summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-02-23 00:32:12 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-02-23 01:54:01 +0000
commit0407200401358d3d565438800f55b61fc1a61794 (patch)
treef5bd04e6a5c92c569dd8842192cb3557c6e425d7 /sd
parent36de6c50684c8241969a2064d30aff41e0bc5d97 (diff)
fix crash in the sidebar code
The check should be for xPanel and not xPanels. See http://crashreport.libreoffice.org/stats/signature/sfx2::sidebar::Panel::GetTitleBar() Change-Id: I745d6d8abbfc68e86ed812460faa551867ddec43 Reviewed-on: https://gerrit.libreoffice.org/34560 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/sidebar/SlideBackground.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/sidebar/SlideBackground.cxx b/sd/source/ui/sidebar/SlideBackground.cxx
index dca73a874c07..e89fd867819d 100644
--- a/sd/source/ui/sidebar/SlideBackground.cxx
+++ b/sd/source/ui/sidebar/SlideBackground.cxx
@@ -298,7 +298,7 @@ void SlideBackground::SetPanelTitle( const OUString& rTitle )
return;
Reference<ui::XPanel> xPanel ( xPanels->getByName("SlideBackgroundPanel"), uno::UNO_QUERY);
- if ( !xPanels.is() )
+ if ( !xPanel.is() )
return;
xPanel->setTitle( rTitle );