From c4b599cf50198382447fa3a2c705453eb31a9c2f Mon Sep 17 00:00:00 2001 From: adam Date: Sun, 11 Apr 2004 20:04:09 +0000 Subject: [PATCH] fixed bug 536 darcs-hash:20040411200409-5007d-97104e8adb1ee4b5567cc61fd742f3509491e09b.gz --- src/org/ibex/Box.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 1.7.10.4