Browse Source

changed TextNode's wordwrap_to interface

David Rose 24 years ago
parent
commit
969f4db907
2 changed files with 2 additions and 2 deletions
  1. 1 1
      panda/src/chat/chatHelpers.cxx
  2. 1 1
      panda/src/chat/chatInput.cxx

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

+ 1 - 1
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()) {