Просмотр исходного кода

Fixed what I'm pretty sure is a typo. I didn't test it
but I can see no reason to clear the refresh flag on these
methods but setting it seems entirely logical.

Paul Speed 10 лет назад
Родитель
Сommit
308e88fd21
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      jme3-core/src/main/java/com/jme3/font/BitmapText.java

+ 3 - 3
jme3-core/src/main/java/com/jme3/font/BitmapText.java

@@ -352,7 +352,7 @@ public class BitmapText extends Node {
     public void setTabPosition(float... tabs) {
         block.setTabPosition(tabs);
         letters.invalidate();
-        needRefresh = false;
+        needRefresh = true;
     }
 
     /**
@@ -362,7 +362,7 @@ public class BitmapText extends Node {
     public void setTabWidth(float width) {
         block.setTabWidth(width);
         letters.invalidate();
-        needRefresh = false;
+        needRefresh = true;
     }
 
     /**
@@ -373,7 +373,7 @@ public class BitmapText extends Node {
     public void setEllipsisChar(char c) {
         block.setEllipsisChar(c);
         letters.invalidate();
-        needRefresh = false;
+        needRefresh = true;
     }
 
     /**