--- deliantra/dclient/src/backend/ndk/edit.cpp 2010/10/24 20:31:50 1.6 +++ deliantra/dclient/src/backend/ndk/edit.cpp 2011/01/21 21:49:37 1.7 @@ -78,9 +78,12 @@ break; } - label::draw (out, begin_); /* and draw */ - set_cursor (); /* and finally update cursor position */ - pen (*this).commit (); /* commit changes to the screen */ + if (begin_ > out.length ()) + begin_ = out.length (); + + label::draw (out, begin_); /* and draw */ + set_cursor (); /* and finally update cursor position */ + pen (*this).commit (); /* commit changes to the screen */ } ndk::event::result