From 654763d950701fb714553c01bb12481a131a0fdd Mon Sep 17 00:00:00 2001 From: "PSp..om" Date: Mon, 14 Mar 2011 22:08:14 +0000 Subject: [PATCH] Fixed setText() to invalidate... otherwise, getTotalWidth(), etc. continue to use the cached sizes. git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@6984 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/font/Letters.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/src/core/com/jme3/font/Letters.java b/engine/src/core/com/jme3/font/Letters.java index eece896a6..bbb47a467 100644 --- a/engine/src/core/com/jme3/font/Letters.java +++ b/engine/src/core/com/jme3/font/Letters.java @@ -54,6 +54,8 @@ class Letters { Range end = ranges.getLast(); setColor(end.start, plainText.length(), end.color); } + + invalidate(); } LetterQuad getHead() {