From 969f4db9071bbd1aa3bf50d7706fe8a6dbc34302 Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 11 Jul 2001 18:46:07 +0000 Subject: [PATCH] changed TextNode's wordwrap_to interface --- panda/src/chat/chatHelpers.cxx | 2 +- panda/src/chat/chatInput.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/panda/src/chat/chatHelpers.cxx b/panda/src/chat/chatHelpers.cxx index e5d0e5def6..99868bd48f 100644 --- a/panda/src/chat/chatHelpers.cxx +++ b/panda/src/chat/chatHelpers.cxx @@ -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; diff --git a/panda/src/chat/chatInput.cxx b/panda/src/chat/chatInput.cxx index bec1088342..09b2be463f 100644 --- a/panda/src/chat/chatInput.cxx +++ b/panda/src/chat/chatInput.cxx @@ -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()) {