Browse Source

Stroke thickness attribute is kept positive

Bengt Soderstrom 9 years ago
parent
commit
3d0ab6e2ca
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Source/Urho3D/UI/Text.cpp

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

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