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--; } }