[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-dev] tiny Document.stringColor_ bug
hi jan, list,
found a tiny Document.stringColor_ bug.
d= Document("test123", "test123")
d.stringColor //nil here ok?
d.stringColor_(Color.blue)
d.stringColor
d.stringColor_(Color.red, 2) //nothing ok? rest of doc (-1) better than
default=0?
d.stringColor_(Color.red, 2, 1)
d.stringColor_(Color.red, 2, 99) //anyway -here is the bug. last char not red
d.stringColor_(Color.green, 5, 1)
d.stringColor_(Color.green, 6, 1) //and a similar one here
line 239 in GUIPrimitives.M
if(rangeStart + rangeSize >= length) rangeSize = length - rangeStart - 1;
guess it should be...
if(rangeStart + rangeSize >= length) rangeSize = length - rangeStart;
shall i correct?
_f
#|
fredrikolofsson.com klippav.org musicalfieldsforever.com
|#