Explorar o código

Stroke thickness attribute is kept positive

Bengt Soderstrom %!s(int64=9) %!d(string=hai) anos
pai
achega
3d0ab6e2ca
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Source/Urho3D/UI/Text.cpp

+ 1 - 0
Source/Urho3D/UI/Text.cpp

@@ -111,6 +111,7 @@ void Text::ApplyAttributes()
     DecodeToUnicode();
 
     fontSize_ = Max(fontSize_, 1);
+    strokeThickness_ = Abs(strokeThickness_);
     ValidateSelection();
     UpdateText();
 }