[API] Fix inputText with resizable ImString crashes if the ImGuiInputTextCallback is null
fixes #158
This commit is contained in:
1 file changed
+1
-1
@@ -3147,7 +3147,7 @@ public class ImGui {
|
|||||||
userData.textInputData = &textInputData;
|
userData.textInputData = &textInputData;
|
||||||
userData.env = env;
|
userData.env = env;
|
||||||
userData.allowedChars = allowedChars;
|
userData.allowedChars = allowedChars;
|
||||||
userData.handler = &callback;
|
userData.handler = callback != NULL ? &callback : NULL;
|
||||||
|
|
||||||
bool valueChanged;
|
bool valueChanged;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user