diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-05-06 08:06:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-06 08:06:15 +0200 |
commit | 4fee363d7df235d2b9275240a87474d9bd0de541 (patch) | |
tree | aee79a4c7d7face8291f29b4d87d611331a842e8 | |
parent | a5a0fe65df94d7e6a3459c429c58b83f562edbfc (diff) | |
parent | 1a05cca824e9fa751987b34487ab162683931929 (diff) |
Merge pull request #48495 from EricEzaM/editor-log-fix-startintg-newline
Fix blank line at start of Editor Log (reinstate #44909)
-rw-r--r-- | editor/editor_log.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editor/editor_log.cpp b/editor/editor_log.cpp index 9f188b53c4..602035634a 100644 --- a/editor/editor_log.cpp +++ b/editor/editor_log.cpp @@ -187,8 +187,6 @@ void EditorLog::_add_log_line(LogMessage &p_message, bool p_replace_previous) { // Remove last line if replacing, as it will be replace by the next added line. log->remove_line(log->get_line_count() - 1); log->increment_line_count(); - } else { - log->add_newline(); } switch (p_message.type) { @@ -222,6 +220,7 @@ void EditorLog::_add_log_line(LogMessage &p_message, bool p_replace_previous) { } log->add_text(p_message.text); + log->add_newline(); // Need to use pop() to exit out of the RichTextLabels current "push" stack. // We only "push" in the above switch when message type != STD, so only pop when that is the case. |