changed TextNode's wordwrap_to interface
This commit is contained in:
parent
1d0db9558a
commit
969f4db907
|
|
@ -28,7 +28,7 @@ string add_line_wraps(const string& str, int line_length) {
|
|||
string new_str;
|
||||
string old_str = str;
|
||||
|
||||
if (str.length() <= line_length)
|
||||
if ((int)str.length() <= line_length)
|
||||
return old_str;
|
||||
|
||||
int length_so_far = 0;
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ append_character(char ch) {
|
|||
string text = _str + ch;
|
||||
if (_text_node->has_wordwrap()) {
|
||||
text =
|
||||
_text_node->wordwrap_to(text, _text_node->get_wordwrap());
|
||||
_text_node->wordwrap_to(text, _text_node->get_wordwrap(), false);
|
||||
}
|
||||
|
||||
if (has_max_width()) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue