1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

Make sure we actually have an ellipsis.

This commit is contained in:
Frank Zago 2009-08-15 15:43:30 +00:00
parent 4845ba80bd
commit 79362501c1

View File

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