From: adam Date: Sun, 11 Apr 2004 20:04:09 +0000 (+0000) Subject: fixed bug 536 X-Git-Tag: RC4~8 X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=commitdiff_plain;h=c4b599cf50198382447fa3a2c705453eb31a9c2f fixed bug 536 darcs-hash:20040411200409-5007d-97104e8adb1ee4b5567cc61fd742f3509491e09b.gz --- diff --git a/src/org/ibex/Box.java b/src/org/ibex/Box.java index 6811f21..c153c8b 100644 --- a/src/org/ibex/Box.java +++ b/src/org/ibex/Box.java @@ -571,7 +571,7 @@ public final class Box extends JSScope implements Scheduler.Task { public void put(Object name, Object value) throws JSExn { if (name instanceof Number) { put(toInt(name), value); return; } //#switch(name) - case "text": CHECKSET_STRING(text); RECONSTRAIN(); DIRTY; + case "text": if (value == null) value = ""; CHECKSET_STRING(text); RECONSTRAIN(); DIRTY; case "strokecolor": value = N(stringToColor((String)value)); CHECKSET_INT(strokecolor); DIRTY; case "textcolor": value = N(stringToColor((String)value)); CHECKSET_INT(strokecolor); DIRTY; case "strokewidth": CHECKSET_SHORT(strokewidth); DIRTY;