소스 검색

PopStyleVar() fix. OOPS

omar 10 년 전
부모
커밋
2322318cac
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      imgui.cpp

+ 1 - 0
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--;
     }
 }