projects
/
org.ibex.core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2cd2755
)
2002/05/16 04:22:24
author
megacz
<megacz@xwt.org>
Fri, 30 Jan 2004 06:47:18 +0000
(06:47 +0000)
committer
megacz
<megacz@xwt.org>
Fri, 30 Jan 2004 06:47:18 +0000
(06:47 +0000)
darcs-hash:
20040130064718
-2ba56-
8c7cd0193b55546e9fadbfe1f333ffac96f76ade
.gz
CHANGES
patch
|
blob
|
history
src/org/xwt/SpecialBoxProperty.java
patch
|
blob
|
history
diff --git
a/CHANGES
b/CHANGES
index
139094c
..
47be491
100644
(file)
--- a/
CHANGES
+++ b/
CHANGES
@@
-151,3
+151,6
@@
15-May megacz Resources.java: fixed a bug in download-size calculation.
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
(file)
--- 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;
}
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) |
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();
b.text = t;
b.textupdate();
b.dirty();