Skip to content

Commit

Permalink
fix "DivideError" when initalising InputText. fixes wookay#23
Browse files Browse the repository at this point in the history
  • Loading branch information
bjuergens authored May 7, 2022
1 parent 4022dae commit a66941e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Desktop/imgui_controls.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ end
# CImGui.InputText
function imgui_control_item(imctx::Ptr, item::InputText)
null = '\0'
nullpad_buf = rpad(item.buf, item.buf_size, null)
nullpad_buf = rpad(item.buf, item.buf_size)
value = @cstatic_var buf=nullpad_buf begin
changed = CImGui.InputText(item.label, buf, item.buf_size)
end
Expand Down

0 comments on commit a66941e

Please sign in to comment.