From: megacz Date: Fri, 30 Jan 2004 06:47:18 +0000 (+0000) Subject: 2002/05/16 04:22:24 X-Git-Tag: RC3~1740 X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=commitdiff_plain;h=5d41517a1e4ee5201568531809835f663d00be3b;ds=sidebyside 2002/05/16 04:22:24 darcs-hash:20040130064718-2ba56-8c7cd0193b55546e9fadbfe1f333ffac96f76ade.gz --- diff --git a/CHANGES b/CHANGES index 139094c..47be491 100644 --- a/CHANGES +++ b/CHANGES @@ -151,3 +151,6 @@ 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. + 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();