summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-02-23 00:32:12 +0100
committerKatarina Behrens <Katarina.Behrens@cib.de>2017-02-23 08:55:35 +0000
commit95396dbcaf035655f1102480c146e6cbc9f44d70 (patch)
tree80d7493ced66e55414ec1ad002956125a5ae780f /sd
parent22f80362336f2332984ee2bccddd6eb39abfdea0 (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> (cherry picked from commit 0407200401358d3d565438800f55b61fc1a61794) Reviewed-on: https://gerrit.libreoffice.org/34564 Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
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 dfe65a2bdfb8..473cd9414380 100644
--- a/sd/source/ui/sidebar/SlideBackground.cxx
+++ b/sd/source/ui/sidebar/SlideBackground.cxx
@@ -335,7 +335,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 );