From 3f3991816bf76011d87e33964588a5687da57904 Mon Sep 17 00:00:00 2001 From: Nimetu Date: Thu, 9 Sep 2021 13:57:32 +0300 Subject: [PATCH] Fix missing css length type --- nel/src/gui/css_length.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nel/src/gui/css_length.cpp b/nel/src/gui/css_length.cpp index fde47b644..79465c27d 100644 --- a/nel/src/gui/css_length.cpp +++ b/nel/src/gui/css_length.cpp @@ -152,6 +152,9 @@ void CSSLength::setUnit(const std::string &unit) float CSSLength::calculate(uint32 relValue, uint32 emSize, uint32 remSize, uint32 vwSize, uint32 vhSize = 0) const { + if (m_Kind == Auto) + return 0; + float value = getValue(); switch(m_Unit) {