Fix a wrongly passed parameter in text_box.cpp

This commit is contained in:
aquileia 2014-03-22 20:55:58 +01:00
parent 52c80db79e
commit 9351a25249

View File

@ -208,7 +208,8 @@ void ttext_box::delete_selection()
start -= len;
}
set_value(utils::u8erase(get_value(), start, len));
utf8_string tmp = get_value();
set_value(utils::u8erase(tmp, start, len));
set_cursor(start, false);
}