GUI: fix formatting of messages with only one sentence.
This commit is contained in:
parent
7630e0e4e2
commit
0fb9a4cc23
@ -128,10 +128,13 @@ static void MessageBox(const char *fmt, va_list va, bool error)
|
||||
break;
|
||||
}
|
||||
}
|
||||
std::string message = text.substr(0, separatorAt + 1);
|
||||
std::string message = text;
|
||||
std::string description;
|
||||
if(separatorAt != std::string::npos && separatorAt + 1 < text.size()) {
|
||||
description = text.substr(separatorAt + 1);
|
||||
if(separatorAt != std::string::npos) {
|
||||
message = text.substr(0, separatorAt + 1);
|
||||
if(separatorAt + 1 < text.size()) {
|
||||
description = text.substr(separatorAt + 1);
|
||||
}
|
||||
}
|
||||
|
||||
std::string::iterator it = description.begin();
|
||||
|
Loading…
Reference in New Issue
Block a user