소스 검색

Update label.h

Gen 10 년 전
부모
커밋
dfc59d1e00
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      scene/gui/label.h

+ 2 - 1
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;