svx/source/sidebar/text/TextPropertyPanel.cxx | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-)
New commits: commit 153bdc99b1c162723557513b993343c211d804b8 Author: Norbert Thiebaud <nthieb...@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 <nthieb...@gmail.com> Tested-by: Norbert Thiebaud <nthieb...@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); } } } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits