X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FSpecialBoxProperty.java;h=52fc331adf09c2aa4c2b4b68303503a762a5c8d2;hb=8fd78bcfe4e844cae509d132ca37bd32a115a6f1;hp=205b8e605d27967e81ab82487390b15024aec4d6;hpb=6242c991f365dbd67eba62ecfa5df769a83fcbc6;p=org.ibex.core.git diff --git a/src/org/xwt/SpecialBoxProperty.java b/src/org/xwt/SpecialBoxProperty.java index 205b8e6..52fc331 100644 --- a/src/org/xwt/SpecialBoxProperty.java +++ b/src/org/xwt/SpecialBoxProperty.java @@ -122,7 +122,8 @@ class SpecialBoxProperty { } public void put(Box b, Object value) { int newtextcolor = b.color; - String s = value == null ? null : value.toString(); + if (value == null) return; + String s = value.toString(); if (s.length() > 0 && s.charAt(0) == '#') newtextcolor = 0xFF000000 | (Integer.parseInt(s.substring(1, 3), 16) << 16) | @@ -167,6 +168,9 @@ class SpecialBoxProperty { */ } + // FIXME: don't know why this is needed + b.dirty(); + b.text = t; b.textupdate(); b.dirty();