fix: don't multiply full rounding by scale

Full rounding is int max, so if multiplied it overflows
This commit is contained in:
2 * r + 2 * t 2026-06-08 03:19:25 +10:00
parent 38a737b4d8
commit b2a62e72ab

View file

@ -61,7 +61,7 @@ int AppearanceRounding::extraExtraLarge() const {
}
int AppearanceRounding::full() const {
return m_tokens ? static_cast<int>(m_tokens->full() * m_scale) : 0;
return m_tokens ? static_cast<int>(m_tokens->full()) : 0;
}
// AppearanceSpacing