Author: mordante
Date: Sat Mar 1 23:57:55 2008
New Revision: 24187
URL: http://svn.gna.org/viewcvs/wesnoth?rev=24187&view=rev
Log:
Truncate names in the load dialog utf8 aware, might be related to
bug #11186.
Modified:
trunk/changelog
trunk/src/dialogs.cpp
Modified: trunk/changelog
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/changelog?rev=24187&r1=24186&r2=24187&view=diff
==============================================================================
--- trunk/changelog (original)
+++ trunk/changelog Sat Mar 1 23:57:55 2008
@@ -39,9 +39,11 @@
* 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:
Modified: trunk/src/dialogs.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/dialogs.cpp?rev=24187&r1=24186&r2=24187&view=diff
==============================================================================
--- trunk/src/dialogs.cpp (original)
+++ trunk/src/dialogs.cpp Sat Mar 1 23:57:55 2008
@@ -658,7 +658,7 @@
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);
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits