Author: mordante
Date: Tue Sep  2 20:04:54 2008
New Revision: 29207

URL: http://svn.gna.org/viewcvs/wesnoth?rev=29207&view=rev
Log:
Fixed the insert code.

The insert code duplicated the contents of the current buffer instead of
inserting the new data. This make the paste code fail.

Modified:
    trunk/src/text.cpp

Modified: trunk/src/text.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/text.cpp?rev=29207&r1=29206&r2=29207&view=diff
==============================================================================
--- trunk/src/text.cpp (original)
+++ trunk/src/text.cpp Tue Sep  2 20:04:54 2008
@@ -135,7 +135,7 @@
                return 0;
        }
 
-       wide_string wtext = utils::string_to_wstring(text_);
+       wide_string wtext = utils::string_to_wstring(text);
        insert_unicode(offset, wtext);
        return wtext.size();
 }


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to