浏览代码

Merge pull request #217 from Pagghiu/bugfix

Example fix PopStyleVar on Vertical Slider to avoid assertion
omar 10 年之前
父节点
当前提交
cd2ec7868c
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      imgui.cpp

+ 1 - 0
imgui.cpp

@@ -10345,6 +10345,7 @@ void ImGui::ShowTestWindow(bool* opened)
                 ImGui::PopID();
             }
             ImGui::PopID();
+            ImGui::PopStyleVar();
 
             ImGui::Indent();
             ImGui::TreePop();