From 99a1a85f1ff418e99ec70c4b0d3cb49efffee5c2 Mon Sep 17 00:00:00 2001 From: Stefano Cristiano Date: Mon, 11 May 2015 14:45:49 +0200 Subject: [PATCH] Example fix PopStyleVar on Vertical Slider to avoid assertion Adding an explicit ImGui::PopStyleVar to avoid assertion in CheckStacksSize --- imgui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/imgui.cpp b/imgui.cpp index f8b00130..0ad04608 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -10345,6 +10345,7 @@ void ImGui::ShowTestWindow(bool* opened) ImGui::PopID(); } ImGui::PopID(); + ImGui::PopStyleVar(); ImGui::Indent(); ImGui::TreePop();