summaryrefslogtreecommitdiff
path: root/svtools/source/control/ctrltool.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/control/ctrltool.cxx')
-rw-r--r--svtools/source/control/ctrltool.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/svtools/source/control/ctrltool.cxx b/svtools/source/control/ctrltool.cxx
index ffa4fbb92d56..8561167467f4 100644
--- a/svtools/source/control/ctrltool.cxx
+++ b/svtools/source/control/ctrltool.cxx
@@ -126,12 +126,11 @@ private:
//sort normal to the start
static int sortWeightValue(FontWeight eWeight)
{
- if (eWeight == WEIGHT_NORMAL)
- return 0;
if (eWeight < WEIGHT_NORMAL)
return eWeight + 1;
if (eWeight > WEIGHT_NORMAL)
return eWeight - 1;
+ return 0; // eWeight == WEIGHT_NORMAL
}
static StringCompare ImplCompareFontInfo( ImplFontListFontInfo* pInfo1,