فهرست منبع

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 سال پیش
والد
کامیت
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;
     }
 
     /**