mirror of
https://github.com/ocornut/imgui.git
synced 2025-02-17 11:08:42 +01:00
InputText: amend d474ed7 for static analysis. (#7913)
This commit is contained in:
parent
ce484301c0
commit
438f9e1a3e
@ -4461,7 +4461,7 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_
|
|||||||
SetKeyOwner(ImGuiMod_Alt, id);
|
SetKeyOwner(ImGuiMod_Alt, id);
|
||||||
|
|
||||||
// Expose scroll in a manner that is agnostic to us using a child window
|
// Expose scroll in a manner that is agnostic to us using a child window
|
||||||
if (is_multiline)
|
if (is_multiline && state != NULL)
|
||||||
state->Scroll.y = draw_window->Scroll.y;
|
state->Scroll.y = draw_window->Scroll.y;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user