Skip to content

Commit 80c357c

Browse files
authored
Merge pull request #977 from Lukas1811/fix-end-child-assertion
Fixed possible ImGui assertions
2 parents 2449d61 + d769e29 commit 80c357c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/ngscopeclient/CreateFilterBrowser.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,9 @@ bool CreateFilterBrowser::DoRender()
221221
DrawIconButton(draw_list, pos, color, icon, caption);
222222
}
223223

224-
ImGui::EndChild();
225224
}
225+
226+
ImGui::EndChild();
226227

227228
return true;
228229
}

src/ngscopeclient/MainWindow.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1930,8 +1930,9 @@ void MainWindow::RenderLoadWarningPopup()
19301930
ImGuiChildFlags_Borders | ImGuiChildFlags_ResizeY))
19311931
{
19321932
ImGui::Markdown( m_session.m_setupNotes.c_str(), m_session.m_setupNotes.length(), GetMarkdownConfig());
1933-
ImGui::EndChild();
19341933
}
1934+
1935+
ImGui::EndChild();
19351936
}
19361937

19371938
//If we have config warnings, show them

0 commit comments

Comments
 (0)