diff options
author | Marcel Metz <mmetz@adrian-broher.net> | 2012-01-15 11:48:11 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-01-23 23:28:50 +0100 |
commit | 89f0655ebadb1aa9be31d854dfe5476e2b16e64c (patch) | |
tree | 20b96b8e860c738e33ceeb0f7d74817def90f564 /sfx2 | |
parent | f9e6d195dbbf0b2effa10f69f4c99fce6e2b186b (diff) |
Replaced diagnore ENSURE_OR_CONTINUE with regular code.
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/taskpane.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sfx2/source/dialog/taskpane.cxx b/sfx2/source/dialog/taskpane.cxx index d83ad1b871b5..7a85eaab6cb0 100644 --- a/sfx2/source/dialog/taskpane.cxx +++ b/sfx2/source/dialog/taskpane.cxx @@ -671,7 +671,12 @@ namespace sfx2 { const ::svt::PToolPanel pPanel( m_aPanelDeck.GetPanel( i ) ); const CustomToolPanel* pCustomPanel = dynamic_cast< const CustomToolPanel* >( pPanel.get() ); - ENSURE_OR_CONTINUE( pCustomPanel != NULL, "ModuleTaskPane_Impl::GetPanelPos: illegal panel implementation!" ); + if ( !pCustomPanel ) + { + SAL_WARN( "sfx2.dialog", "ModuleTaskPane_Impl::GetPanelPos: illegal panel implementation!" ); + continue; + } + if ( pCustomPanel->GetResourceURL() == i_rResourceURL ) { aPanelPos = i; |