2002/06/05 19:56:27
[org.ibex.core.git] / src / org / xwt / SpecialBoxProperty.java
index 205b8e6..52fc331 100644 (file)
@@ -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();