Explorar el Código

fixes string colorisation bug

Laserlicht hace 1 año
padre
commit
03d03491b5
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      client/windows/CMessage.cpp

+ 4 - 0
client/windows/CMessage.cpp

@@ -130,7 +130,11 @@ std::vector<std::string> CMessage::breakText(std::string text, size_t maxLineWid
 		if(currPos < text.length() && (text[currPos] != 0x0a))
 		{
 			if(wordBreak != ui32(-1))
+			{
 				currPos = wordBreak;
+				if(text.substr(0, currPos).find('{') == std::string::npos)
+					opened = false;
+			}
 			else
 				currPos -= symbolSize;
 		}