Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash on passing empty span to ImDrawList::AddText #443

Merged
merged 5 commits into from
Nov 19, 2023

Conversation

ZingBallyhoo
Copy link
Contributor

Context: in the current version, passing an empty span to ImDrawList::AddText will cause crash in Encoding. The manually written methods were also not fixed for #436

  • Added generator support for methods that take char* text_start, char* text_end, removed manually written versions (igCalcTextSize & ImDrawList::AddText). This also results in more overloads being available for them.
  • Fixed crashes in Util.CalcSizeInUtf8 & GetUtf8 when passing empty spans
  • Switched to Util.GetUtf8 for marshalling string arrays
  • Regenerated ImPlot&ImNodes as they have not been recently updated

@zaafar
Copy link
Collaborator

zaafar commented Nov 17, 2023

i will try to get this merge this weekend.

@zaafar zaafar merged commit 1f001e3 into ImGuiNET:master Nov 19, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants