summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorGen <z.rz2323721@gmail.com>2015-04-28 23:07:41 +0800
committerGen <z.rz2323721@gmail.com>2015-04-28 23:07:41 +0800
commitdfc59d1e006a0c7c90d48d2781b48000cbd7c88c (patch)
tree67fbb4aeac10c88e9758ae6284d675ba1f4cb2fc /scene/gui
parent1a6012aff57498a476982f8dd918b5898da6e1f1 (diff)
Update label.h
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/label.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/gui/label.h b/scene/gui/label.h
index 3b0dddc1a3..6c1a5d8c86 100644
--- a/scene/gui/label.h
+++ b/scene/gui/label.h
@@ -75,8 +75,9 @@ private:
int char_pos; // if -1, then newline
int word_len;
int pixel_width;
+ bool space_insert;
WordCache *next;
- WordCache() { char_pos=0; word_len=0; pixel_width=0; next=0; }
+ WordCache() { char_pos=0; word_len=0; pixel_width=0; next=0; space_insert=true;}
};
bool word_cache_dirty;