Char counting wrong on windows?

raptor16

30-06-2012 09:33:34

size_t TextView::getCursorPosition(const IntPoint& _value)

if (!lastline)
{
top += height;
result += line->count + 1; // May be +2, because line ending with "\r\n" on windows
}


When I click on EditBox with \r\n text, the following input text will be at wrong position.

Altren

30-06-2012 22:25:59

Should be fixed now, get latest version from svn.

raptor16

01-07-2012 04:23:27

Fixed.