changed TextNode's wordwrap_to interface

This commit is contained in:
David Rose 2001-07-11 18:46:07 +00:00
parent 1d0db9558a
commit 969f4db907
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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()) {