diff options
author | Gen <z.rz2323721@gmail.com> | 2015-04-29 16:34:56 +0800 |
---|---|---|
committer | Gen <z.rz2323721@gmail.com> | 2015-04-29 16:34:56 +0800 |
commit | 6fa342a1b05ad4f4f079ba38925e4980439137c4 (patch) | |
tree | 194bb05e7248c3f14d846aa6c6eeb0fafda836db /scene | |
parent | ad358562e5ab2c0fdb916acba7cf3118802de21f (diff) |
record the number of space before a word.
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/label.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/label.h b/scene/gui/label.h index 6c1a5d8c86..81e3ab5676 100644 --- a/scene/gui/label.h +++ b/scene/gui/label.h @@ -75,9 +75,9 @@ private: int char_pos; // if -1, then newline int word_len; int pixel_width; - bool space_insert; + int space_count; WordCache *next; - WordCache() { char_pos=0; word_len=0; pixel_width=0; next=0; space_insert=true;} + WordCache() { char_pos=0; word_len=0; pixel_width=0; next=0; space_count=0;} }; bool word_cache_dirty; |