1
0
Fork 0

property display: don't choke on nil properties

This commit is contained in:
mfranz 2008-05-14 10:57:02 +00:00
parent ba57bd9a2e
commit ee8b517246

View file

@ -197,8 +197,11 @@ var property_display = {
}, },
update : func { update : func {
me.window.lines = []; me.window.lines = [];
foreach (var n; me.nodes) foreach (var n; me.nodes) {
append(me.window.lines, [n.getName() ~ " = " ~ n.getValue(), 1, 1, 0.7, 1]); if ((val = n.getValue()) == nil)
val = "nil";
append(me.window.lines, [n.getName() ~ " = " ~ val, 1, 1, 0.5, 1]);
}
me.window.show(); me.window.show();
}, },
_loop_ : func(id) { _loop_ : func(id) {