2002/05/16 04:22:24
authormegacz <megacz@xwt.org>
Fri, 30 Jan 2004 06:47:18 +0000 (06:47 +0000)
committermegacz <megacz@xwt.org>
Fri, 30 Jan 2004 06:47:18 +0000 (06:47 +0000)
darcs-hash:20040130064718-2ba56-8c7cd0193b55546e9fadbfe1f333ffac96f76ade.gz

CHANGES
src/org/xwt/SpecialBoxProperty.java

diff --git a/CHANGES b/CHANGES
index 139094c..47be491 100644 (file)
--- a/CHANGES
+++ b/CHANGES
 
 15-May megacz Resources.java: fixed a bug in download-size calculation.
 
+15-May megacz SpecialBoxProperty.java: added required extra dirty()
+              call, extra checking on textcolor.
+
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();