mail[Wesnoth-commits] r24829 - /trunk/src/marked-up_text.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by bruno on March 19, 2008 - 17:06:
Author: brunowolff
Date: Wed Mar 19 16:57:14 2008
New Revision: 24829

URL: http://svn.gna.org/viewcvs/wesnoth?rev=24829&view=rev
Log:
Silence gcc warning by adding parens around && clause near ||.

Modified:
    trunk/src/marked-up_text.cpp

Modified: trunk/src/marked-up_text.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/marked-up_text.cpp?rev=24829&r1=24828&r2=24829&view=diff
==============================================================================
--- trunk/src/marked-up_text.cpp (original)
+++ trunk/src/marked-up_text.cpp Wed Mar 19 16:57:14 2008
@@ -443,7 +443,7 @@
                        }
                }
 
-               if(line_break || current_word.empty() && ch == end) {
+               if(line_break || (current_word.empty() && ch == end)) {
                        SDL_Rect size = line_size(current_line, font_sz, 
style);
                        if(max_height > 0 && current_height + size.h >= 
size_t(max_height)) {
                                return wrapped_text;




Related Messages


Powered by MHonArc, Updated Wed Mar 19 17:41:16 2008