Some issues with empty strings and ImGui CalcTextSize

This seems to be related to internal improvements about String.
But now the old patch can’t work correctly, because passing an empty string gives an error.
This channel gets empty strings even if you set a space at the beginning.

5.3-0327

image

image

Can’t reproduce here. We have a null check inside. You’ll need to send a patch please.

You are right
Difficult to reproduce
Sending an isolated part of the patch that reproduces the bug

This helps, but earlier it worked without it.
Also, for some reason, it does not help in the finished patch (I think because that’s where the empty string goes anyway)

image

If you delete a space, an exception will occur.

image

IMGUI_NULL.vl (58.5 KB)

minimal

details

image

imgui_calctextsize_issue.vl (10.7 KB)

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.