Author: mordante
Date: Wed Oct 21 19:52:41 2009
New Revision: 39397

URL: http://svn.gna.org/viewcvs/wesnoth?rev=39397&view=rev
Log:
Properly test whether maximum_width_ is set.

Fixes bug #14565.

Modified:
    trunk/src/text.cpp

Modified: trunk/src/text.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/text.cpp?rev=39397&r1=39396&r2=39397&view=diff
==============================================================================
--- trunk/src/text.cpp (original)
+++ trunk/src/text.cpp Wed Oct 21 19:52:41 2009
@@ -472,7 +472,7 @@
                                << " result " <<  rect_
                                << ".\n";
 
-               if(rect_.width > maximum_width_) {
+               if(maximum_width_ != -1 && rect_.width > maximum_width_) {
                        ERR_GUI_L << "ttext::" << __func__
                                        << " text '" << 
gui2::debug_truncate(text_)
                                        << " ' width " << rect_.width


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

Reply via email to