فهرست منبع

Fix odd newline in `EditorLog::add_message()`

Danil Alexeev 4 سال پیش
والد
کامیت
a8dce9c377
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      editor/editor_log.cpp

+ 1 - 2
editor/editor_log.cpp

@@ -101,8 +101,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: {
@@ -128,6 +126,7 @@ void EditorLog::add_message(const String &p_msg, MessageType p_type) {
 	}
 
 	log->add_text(p_msg);
+	log->add_newline();
 
 	if (restore) {
 		log->pop();