diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-02-23 00:32:12 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-02-24 12:24:44 +0100 |
commit | 148ce37c2977fa71dbd0d10bf57332fc2d02b259 (patch) | |
tree | 40c8804d5b1168bee9738c8e2762022fabea1297 /sd | |
parent | 9fb4f949ffab173bf81bf54134193cf4841d6de5 (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/34563
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit ed8b8f59e1a85b455a2f8daebd2c1f6fb59faeaa)
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/sidebar/SlideBackground.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/sidebar/SlideBackground.cxx b/sd/source/ui/sidebar/SlideBackground.cxx index 9e060ebe250c..07e43ed8eab3 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 ); |