BTextView::GetText is broken
|Reported by:||waddlesplash||Owned by:||axeld|
Text(); works as expected -- you get a
char* with all the text in the view. But calling
GetText(buffer, BTextView::TextLength()); produces the same output only if the text was not modified since
SetText was called. If it was modified,
buffer will not contain the text the view shows, but rather the text as if the user had written it while in overwrite mode meaning the
GetText() buffer will be filled only up to the size of whatever was passed to
SetText as well as being erroneous.
A few OpenGrok searches show that nothing internal uses this, but it appears that at least some apps on HaikuArchives does...