summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2013-06-26 01:27:04 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2013-06-27 14:52:25 +0000
commit153bdc99b1c162723557513b993343c211d804b8 (patch)
tree4f85467d160c6c8bd4a812e872d86a00a6cd1027
parentfd2bd50bb4fbe139cd1ed9332c0d2eeaebc7dabe (diff)
coverity#1027391 : Dead default in switch
Change-Id: I7ef70be9f5230eb3fb586962a1581efa38c239f0 Reviewed-on: https://gerrit.libreoffice.org/4526 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
-rw-r--r--svx/source/sidebar/text/TextPropertyPanel.cxx17
1 files changed, 6 insertions, 11 deletions
diff --git a/svx/source/sidebar/text/TextPropertyPanel.cxx b/svx/source/sidebar/text/TextPropertyPanel.cxx
index abb05a526404..68382b14acd9 100644
--- a/svx/source/sidebar/text/TextPropertyPanel.cxx
+++ b/svx/source/sidebar/text/TextPropertyPanel.cxx
@@ -1073,18 +1073,13 @@ void TextPropertyPanel::NotifyItemUpdate (
else
mpToolBoxIncDec->Enable();
const sal_Int64 nSize (mpFontSizeBox->GetValue());
- switch(nSID)
+ if(nSID == SID_GROW_FONT_SIZE)
{
- case SID_GROW_FONT_SIZE:
- mpToolBoxIncDec->EnableItem(mpToolBoxIncDec->GetItemId(UNO_GROW), bIsEnabled && nSize<960);
- break;
-
- case SID_SHRINK_FONT_SIZE:
- mpToolBoxIncDec->EnableItem(mpToolBoxIncDec->GetItemId(UNO_SHRINK), bIsEnabled && nSize>60);
- break;
-
- default:
- break;
+ mpToolBoxIncDec->EnableItem(mpToolBoxIncDec->GetItemId(UNO_GROW), bIsEnabled && nSize<960);
+ }
+ else if (nSID == SID_SHRINK_FONT_SIZE)
+ {
+ mpToolBoxIncDec->EnableItem(mpToolBoxIncDec->GetItemId(UNO_SHRINK), bIsEnabled && nSize>60);
}
}
}