record the number of space before a word.

This commit is contained in:
Gen 2015-04-29 16:34:56 +08:00
parent ad358562e5
commit 6fa342a1b0

View file

@ -75,9 +75,9 @@ private:
int char_pos; // if -1, then newline int char_pos; // if -1, then newline
int word_len; int word_len;
int pixel_width; int pixel_width;
bool space_insert; int space_count;
WordCache *next; 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; bool word_cache_dirty;