mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-21 22:05:20 +00:00
Fix #1311
This commit is contained in:
4
vendor/microui/microui.odin
vendored
4
vendor/microui/microui.odin
vendored
@@ -1030,9 +1030,7 @@ number_textbox :: proc(ctx: ^Context, value: ^Real, r: Rect, id: Id, fmt_string:
|
||||
if ctx.number_edit_id == id {
|
||||
res := textbox_raw(ctx, ctx.number_edit_buf[:], &ctx.number_edit_len, id, r, {})
|
||||
if .SUBMIT in res || ctx.focus_id != id {
|
||||
ok: bool
|
||||
value^, ok = parse_real(string(ctx.number_edit_buf[:ctx.number_edit_len]))
|
||||
assert(ok == true)
|
||||
value^, _ = parse_real(string(ctx.number_edit_buf[:ctx.number_edit_len]))
|
||||
ctx.number_edit_id = 0
|
||||
} else {
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user