Browse Source

Make sure we actually have an ellipsis.

Frank Zago 16 years ago
parent
commit
79362501c1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/CMessage.cpp

+ 1 - 1
client/CMessage.cpp

@@ -153,7 +153,7 @@ std::vector<std::string> * CMessage::breakText(std::string text, size_t maxLineS
 			int pos = z-1;
 
 			// Do not break an ellipsis, backtrack until whitespace.
-			if (text[z] == '.') {
+			if (text[pos] == '.' && text[z] == '.') {
 				while (pos != 0 && text[pos] != ' ')
 					pos--;
 			} else {