From 2322318cac411250056f656eed5d4ac2a8a17bc5 Mon Sep 17 00:00:00 2001 From: omar Date: Fri, 21 Nov 2014 14:19:26 +0000 Subject: [PATCH] PopStyleVar() fix. OOPS --- imgui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/imgui.cpp b/imgui.cpp index dc61d421..01c5d0f7 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -2633,6 +2633,7 @@ void ImGui::PopStyleVar(int count) else if (ImVec2* pvar_v = GetStyleVarVec2Addr(backup.Var)) *pvar_v = backup.PreviousValue; g.StyleModifiers.pop_back(); + count--; } }