Skip to content

Commit

Permalink
Fix unused variable warning in ImGui::EndListBox() (#3897)
Browse files Browse the repository at this point in the history
  • Loading branch information
fountainment authored Mar 11, 2021
1 parent 6ba1334 commit a3ebd16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions imgui_widgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6220,6 +6220,7 @@ void ImGui::EndListBox()
ImGuiContext& g = *GImGui;
ImGuiWindow* window = g.CurrentWindow;
IM_ASSERT((window->Flags & ImGuiWindowFlags_ChildWindow) && "Mismatched BeginListBox/EndListBox calls. Did you test the return value of BeginListBox?");
IM_UNUSED(window);

EndChildFrame();
EndGroup(); // This is only required to be able to do IsItemXXX query on the whole ListBox including label
Expand Down

0 comments on commit a3ebd16

Please sign in to comment.