summaryrefslogtreecommitdiff
path: root/svtools/source/toolpanel/toolpaneldeck.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/toolpanel/toolpaneldeck.cxx')
-rw-r--r--svtools/source/toolpanel/toolpaneldeck.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/svtools/source/toolpanel/toolpaneldeck.cxx b/svtools/source/toolpanel/toolpaneldeck.cxx
index b07e0de8c773..957e47432bd3 100644
--- a/svtools/source/toolpanel/toolpaneldeck.cxx
+++ b/svtools/source/toolpanel/toolpaneldeck.cxx
@@ -252,15 +252,13 @@ namespace svt
case ACTION_ACTIVATE_PREV:
if ( !aCurrentPanel && ( nPanelCount > 0 ) )
aActivatePanel = nPanelCount - 1;
- else
- if ( !!aCurrentPanel && ( *aCurrentPanel > 0 ) )
+ else if ( !!aCurrentPanel && ( *aCurrentPanel > 0 ) )
aActivatePanel = *aCurrentPanel - 1;
break;
case ACTION_ACTIVATE_NEXT:
if ( !aCurrentPanel && ( nPanelCount > 0 ) )
aActivatePanel = 0;
- else
- if ( !!aCurrentPanel && ( *aCurrentPanel < nPanelCount - 1 ) )
+ else if ( !!aCurrentPanel && ( *aCurrentPanel < nPanelCount - 1 ) )
aActivatePanel = *aCurrentPanel + 1;
break;
case ACTION_ACTIVATE_LAST: