summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorehriche <eehrich@googlemail.com>2015-05-06 01:39:42 +0200
committerehriche <eehrich@googlemail.com>2015-05-06 01:39:42 +0200
commitac9263c680076eed36887a681cb59fdcce6c6f73 (patch)
tree8697141f87dfb4b3c87c895126e0821cdd545bd3 /scene/gui
parentb89cd136a9ce85d1ecf397e8129897a5bd2dd839 (diff)
clearified parenthesis of if construct
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/label.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/label.cpp b/scene/gui/label.cpp
index 1751d335ee..dac21275dc 100644
--- a/scene/gui/label.cpp
+++ b/scene/gui/label.cpp
@@ -433,7 +433,7 @@ void Label::regenerate_word_cache() {
}
- if ((autowrap && line_width>=width && (last && last->char_pos >= 0 || not_latin)) || insert_newline) {
+ if ((autowrap && (line_width >= width) && ((last && last->char_pos >= 0) || not_latin)) || insert_newline) {
if (not_latin) {
if (current_word_size>0) {
WordCache *wc = memnew( WordCache );