Skip to content

Commit

Permalink
Fix missing css length type
Browse files Browse the repository at this point in the history
  • Loading branch information
nimetu committed Sep 9, 2021
1 parent e0d54f7 commit 3f39918
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nel/src/gui/css_length.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 3f39918

Please sign in to comment.