diff --git a/nel/src/gui/css_length.cpp b/nel/src/gui/css_length.cpp index 8523de077..d0c051a08 100644 --- a/nel/src/gui/css_length.cpp +++ b/nel/src/gui/css_length.cpp @@ -66,6 +66,9 @@ bool CSSLength::parseValue(const std::string &value, bool allowPercent, bool all } std::string unit = toLowerAscii(value.substr(pos)); + if (!allowPercent && unit == "%") + return false; + if (knownUnits.count(unit)) { std::string tmpstr = value.substr(0, pos);