Skip to content
Permalink
Browse files

Merge pull request #119 from ifyoulike/patch-1

Fix style variable check
  • Loading branch information...
swistakm committed May 28, 2019
2 parents 714aabf + 08a9b3b commit 78530d90dc78c477b61747eebcbfd128bc5a0333
Showing with 1 addition and 1 deletion.
  1. +1 −1 imgui/core.pyx
@@ -5972,7 +5972,7 @@ cpdef push_style_color(
.. wraps::
PushStyleColor(ImGuiCol idx, const ImVec4& col)
"""
if not (0 <= variable < enums.ImGuiStyleVar_Count_):
if not (0 <= variable < enums.ImGuiCol_COUNT):
warnings.warn("Unknown style variable: {}".format(variable))
return False

0 comments on commit 78530d9

Please sign in to comment.
You can’t perform that action at this time.