Skip to content

Commit

Permalink
Merge pull request #78 from angus-g/patch-1
Browse files Browse the repository at this point in the history
Add trailing null byte to combo item list
  • Loading branch information
swistakm committed Aug 21, 2018
2 parents 4edf2ba + b382c71 commit 0cce3af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imgui/core.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -3243,7 +3243,7 @@ def combo(str label, int current, list items, int height_in_items=-1):
"""
cdef int inout_current = current

in_items = "\0".join(items)
in_items = "\0".join(items) + "\0"

return cimgui.Combo(
_bytes(label), &inout_current, _bytes(in_items), height_in_items
Expand Down

0 comments on commit 0cce3af

Please sign in to comment.