From 1f272785f1d2a7f3bbaacc76fd1fd4b37f32bee0 Mon Sep 17 00:00:00 2001 From: ocornut Date: Fri, 6 Mar 2015 22:43:42 +0000 Subject: [PATCH] ShowTestWindow() minor tweak --- imgui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imgui.cpp b/imgui.cpp index a5f40d17..2c213d2d 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -8805,8 +8805,8 @@ void ImGui::ShowTestWindow(bool* opened) ImGui::PushItemWidth(80); ImGui::Text("Lists:"); - static int selection[5] = { -1, 0, 1, 2, 3 }; - for (int i = 0; i < 5; i++) + static int selection[4] = { 0, 1, 2, 3 }; + for (int i = 0; i < 4; i++) { if (i > 0) ImGui::SameLine(); ImGui::PushID(i);