From e2f82c60e6f897224e53188514cacb52cf287759 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Mon, 23 Dec 2024 23:17:19 +0100 Subject: [PATCH] fix: Crash when using text editor as last item in a window --- lib/third_party/imgui/ColorTextEditor/source/TextEditor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/third_party/imgui/ColorTextEditor/source/TextEditor.cpp b/lib/third_party/imgui/ColorTextEditor/source/TextEditor.cpp index c99b72995..465f4d5e1 100644 --- a/lib/third_party/imgui/ColorTextEditor/source/TextEditor.cpp +++ b/lib/third_party/imgui/ColorTextEditor/source/TextEditor.cpp @@ -1274,6 +1274,7 @@ void TextEditor::Render(const char *aTitle, const ImVec2 &aSize, bool aBorder) { mWithinRender = false; ImGui::SetCursorScreenPos(ImVec2(position.x,position.y+aSize.y-1)); + ImGui::Dummy({}); } void TextEditor::SetText(const std::string &aText) {