Fix odd newline in EditorLog::add_message()

(cherry picked from commit a8dce9c377)
This commit is contained in:
Danil Alexeev 2021-01-04 15:46:30 +03:00 committed by Rémi Verschelde
parent e35f17d33d
commit 3002f57e1b
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -102,9 +102,6 @@ void EditorLog::copy() {
}
void EditorLog::add_message(const String &p_msg, MessageType p_type) {
log->add_newline();
bool restore = p_type != MSG_TYPE_STD;
switch (p_type) {
case MSG_TYPE_STD: {
@ -130,6 +127,7 @@ void EditorLog::add_message(const String &p_msg, MessageType p_type) {
}
log->add_text(p_msg);
log->add_newline();
if (restore)
log->pop();