mirror of
https://github.com/Drezil/imgui.git
synced 2025-11-01 05:31:05 +01:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user