Skip to content

Fix for calling two parameter version of ImGuiTextFilter::Draw() - #721

Merged
brenocq merged 1 commit into
epezent:masterfrom
ocornut:fix_draw_filter_call
Sep 24, 2026
Merged

brenocq merged 1 commit into
epezent:masterfrom
ocornut:fix_draw_filter_call

Conversation

@ocornut

@ocornut ocornut commented Sep 18, 2026

Copy link
Copy Markdown
Collaborator

Removed in ocornut/imgui@a14bebd
SetNextItemWidth() is available since 1.70, so no need for version check.

@bostick

bostick commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Ran into this as well.

brenocq added a commit to brenocq/implot3d that referenced this pull request Sep 24, 2026
ImGui removed the `float width` parameter of `ImGuiTextFilter::Draw()` (ocornut/imgui@a14bebd), so the two-argument call in the style editor fails to compile against recent ImGui builds that disable obsolete functions. Set the width with `ImGui::SetNextItemWidth()` before the one-argument call instead; it behaves identically and compiles on all supported ImGui versions.

Mirrors the same fix in ImPlot (epezent/implot#721).

@brenocq brenocq left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Fix also implemented in ImPlot3D: brenocq/implot3d#196

@brenocq
brenocq merged commit 09e2ba7 into epezent:master Sep 24, 2026
18 checks 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.

3 participants