Truncate names in the load dialog utf8 aware, might be related to bug #11186.

This commit is contained in:
Mark de Wever 2008-03-01 22:57:55 +00:00
parent 2079129db4
commit 60a4ab64d3
2 changed files with 4 additions and 2 deletions

View File

@ -39,9 +39,11 @@ Version 1.3.19+svn:
* fix a bug where the random map generator could place a keep on the border
(bug #11150)
* Fixed UI sounds toggle crash on Windows
* When a new unit is spawned when the attacker dies and the new unit has
* when a new unit is spawned when the attacker dies and the new unit has
a lower number of weapons then the weapon number used in the attack an
wml_exception was thrown (bug #10926).
* truncate names in the load dialog utf8 aware, might be related to
bug #11186
Version 1.3.19:
* map editor:

View File

@ -658,7 +658,7 @@ std::string load_game_dialog(display& disp, const config& game_config, const gam
for(i = games.begin(); i != games.end(); ++i) {
std::string name = i->name;
name.resize(minimum<size_t>(name.size(),40));
utils::truncate_as_wstring(name, minimum<size_t>(name.size(), 40));
std::ostringstream str;
str << name << COLUMN_SEPARATOR << format_time_summary(i->time_modified);