diff options
Diffstat (limited to 'sfx2/source/sidebar/DeckLayouter.cxx')
-rw-r--r-- | sfx2/source/sidebar/DeckLayouter.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/sidebar/DeckLayouter.cxx b/sfx2/source/sidebar/DeckLayouter.cxx index 1bd129aae2f2..2c04095fa509 100644 --- a/sfx2/source/sidebar/DeckLayouter.cxx +++ b/sfx2/source/sidebar/DeckLayouter.cxx @@ -212,7 +212,7 @@ sal_Int32 DeckLayouter::PlacePanels ( // Assign heights and places. IterateLayoutItems(iItem,rLayoutItems) { - if (iItem->mpPanel == NULL) + if( !bool(iItem->mpPanel)) continue; Panel& rPanel (*iItem->mpPanel); @@ -305,7 +305,7 @@ void DeckLayouter::GetRequestedSizes ( IterateLayoutItems(iItem,rLayoutItems) { ui::LayoutSize aLayoutSize (ui::LayoutSize(0,0,0)); - if (iItem->mpPanel != NULL) + if( bool(iItem->mpPanel)) { if (rLayoutItems.size() == 1 && iItem->mpPanel->IsTitleBarOptional()) |