mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-24 02:14:22 +00:00
parent
5f301914a0
commit
e8206db829
2 changed files with 2 additions and 2 deletions
|
|
@ -4036,7 +4036,7 @@ void ImGui::InputTextDeactivateHook(ImGuiID id)
|
|||
return;
|
||||
g.InputTextDeactivatedState.ID = state->ID;
|
||||
g.InputTextDeactivatedState.TextA.resize(state->CurLenA + 1);
|
||||
memcpy(g.InputTextDeactivatedState.TextA.Data, state->TextA.Data, state->CurLenA + 1);
|
||||
memcpy(g.InputTextDeactivatedState.TextA.Data, state->TextA.Data ? state->TextA.Data : "", state->CurLenA + 1);
|
||||
}
|
||||
|
||||
// Edit a string of text
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue