You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ShowDemoWindowColumns() triggers assert in imgui_widgets.cpp:
Assertion failed: columns != 0, file imgui\imgui_widgets.cpp, line 7183
Call stack:
example_glfw_opengl3.exe!ImGui::GetColumnWidth(int column_index) Line 7183
example_glfw_opengl3.exe!ShowDemoWindowColumns() Line 2607
example_glfw_opengl3.exe!ImGui::ShowDemoWindow(bool * p_open) Line 408
example_glfw_opengl3.exe!main(int __formal, char * * __formal) Line 137
Screenshots/Video
Standalone, minimal, complete and verifiable example:
Run any of the demo apps on latest master. b443bc0 as of writing.
Drag the 4 columns control (see screenshot) left with mouse, beyond 2 columns. 2 columns works fine, but as soon as you go beyond the app crashes with the assert mentioned above.
The text was updated successfully, but these errors were encountered:
Thank you @dbechrd, fixed this now. It was a mistake that a made that drag reach 1 (I used it while testing the internal BeginColumn api). I took the occasion to actually fix GetColumnWidth and GetColumnOffset to behave kindly when there's no columns active, making them consistent with the other functions.
Version/Branch of Dear ImGui:
Branch: master@b443bc0a64d5e22d445d2c9cb52f7f39da6b98c9
Back-end/Renderer/Compiler/OS
Affects all back-ends as far as I'm aware.
My Issue/Question:
ShowDemoWindowColumns() triggers assert in
imgui_widgets.cpp
:Call stack:
example_glfw_opengl3.exe!ImGui::GetColumnWidth(int column_index) Line 7183
example_glfw_opengl3.exe!ShowDemoWindowColumns() Line 2607
example_glfw_opengl3.exe!ImGui::ShowDemoWindow(bool * p_open) Line 408
example_glfw_opengl3.exe!main(int __formal, char * * __formal) Line 137
Screenshots/Video
Standalone, minimal, complete and verifiable example:
Run any of the demo apps on latest master. b443bc0 as of writing.
Drag the
4 columns
control (see screenshot) left with mouse, beyond2 columns
.2 columns
works fine, but as soon as you go beyond the app crashes with the assert mentioned above.The text was updated successfully, but these errors were encountered: