mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-11 02:26:16 +00:00
Fix a wrongly passed parameter in text_box.cpp
This commit is contained in:
parent
52c80db79e
commit
9351a25249
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user