mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Renamed RTL remove_line() to remove_paragraph().
This commit is contained in:
@@ -286,7 +286,7 @@ 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.
|
||||
// Why "- 2"? RichTextLabel is weird. When you add a line with add_newline(), it also adds an element to the list of lines which is null/blank,
|
||||
// but it still counts as a line. So if you remove the last line (count - 1) you are actually removing nothing...
|
||||
log->remove_line(log->get_paragraph_count() - 2);
|
||||
log->remove_paragraph(log->get_paragraph_count() - 2);
|
||||
}
|
||||
|
||||
switch (p_message.type) {
|
||||
|
||||
Reference in New Issue
Block a user