[Libreoffice-commits] core.git: svx/source
Norbert Thiebaud
nthiebaud at gmail.com
Thu Jun 27 07:52:46 PDT 2013
svx/source/sidebar/text/TextPropertyPanel.cxx | 17 ++++++-----------
1 file changed, 6 insertions(+), 11 deletions(-)
New commits:
commit 153bdc99b1c162723557513b993343c211d804b8
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date: Wed Jun 26 01:27:04 2013 -0500
coverity#1027391 : Dead default in switch
Change-Id: I7ef70be9f5230eb3fb586962a1581efa38c239f0
Reviewed-on: https://gerrit.libreoffice.org/4526
Reviewed-by: Norbert Thiebaud <nthiebaud at gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud at gmail.com>
diff --git a/svx/source/sidebar/text/TextPropertyPanel.cxx b/svx/source/sidebar/text/TextPropertyPanel.cxx
index abb05a5..68382b1 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);
}
}
}
More information about the Libreoffice-commits
mailing list