summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/imivctl1.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/svtools/source/contnr/imivctl1.cxx b/svtools/source/contnr/imivctl1.cxx
index 064f923e425a..c8d689c1a729 100644
--- a/svtools/source/contnr/imivctl1.cxx
+++ b/svtools/source/contnr/imivctl1.cxx
@@ -1979,8 +1979,7 @@ void SvxIconChoiceCtrl_Impl::Command( const CommandEvent& rCEvt )
void SvxIconChoiceCtrl_Impl::ToTop( SvxIconChoiceCtrlEntry* pEntry )
{
- if( !(!maZOrderList.empty()
- && pEntry != maZOrderList.back()))
+ if( maZOrderList.empty() || pEntry == maZOrderList.back())
return;
auto it = std::find(maZOrderList.begin(), maZOrderList.end(), pEntry);
@@ -2698,7 +2697,7 @@ void SvxIconChoiceCtrl_Impl::InitSettings()
pView->SetBackground( rStyleSettings.GetFieldColor());
long nScrBarSize = rStyleSettings.GetScrollBarSize();
- if( !(nScrBarSize != nHorSBarHeight || nScrBarSize != nVerSBarWidth) )
+ if( nScrBarSize == nHorSBarHeight && nScrBarSize == nVerSBarWidth )
return;
nHorSBarHeight = nScrBarSize;