DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2691
Version: 1.3-current


Fl_Text_Display::wrapped_line_counter() has a loop that goes
for (b=p; b>=lineStart; b=buf->prev_char(b)) {
...
}
and so b often ends up with the value -1 when it leaves the loop.
Then there's a
const char *s = buf->address(b);
and
width = measure_proportional_character(s, 0, p+styleBufOffset);
where it examines this byte at index -1.


Link: http://www.fltk.org/str.php?L2691
Version: 1.3-current

_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to