aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/styleengine.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/styleengine.cc b/src/styleengine.cc
index aa09f286..d763146e 100644
--- a/src/styleengine.cc
+++ b/src/styleengine.cc
@@ -612,14 +612,14 @@ bool StyleEngine::computeValue (int *dest, CssLength value, Font *font) {
return true;
case CSS_LENGTH_TYPE_MM:
*dest = roundInt (CSS_LENGTH_VALUE (value) * dpmm);
- return true;
+ return true;
case CSS_LENGTH_TYPE_EM:
*dest = roundInt (CSS_LENGTH_VALUE (value) * font->size);
- return true;
+ return true;
case CSS_LENGTH_TYPE_EX:
*dest = roundInt (CSS_LENGTH_VALUE(value) * font->xHeight);
- return true;
- case CSS_LENGTH_TYPE_NONE:
+ return true;
+ case CSS_LENGTH_TYPE_NONE:
// length values other than 0 without unit are only allowed
// in special cases (line-height) and have to be handled
// separately.