From def723b6b6301b580450edce0ff7797c148379c3 Mon Sep 17 00:00:00 2001 From: omar Date: Wed, 27 Feb 2019 14:34:11 +0100 Subject: [PATCH] Plot: Fixed error in 5e3a1de (#2387) --- imgui_widgets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui_widgets.cpp b/imgui_widgets.cpp index 4ed42ec3f..c9edc4769 100644 --- a/imgui_widgets.cpp +++ b/imgui_widgets.cpp @@ -5344,7 +5344,7 @@ void ImGui::PlotEx(ImGuiPlotType plot_type, const char* label, float (*values_ge RenderFrame(frame_bb.Min, frame_bb.Max, GetColorU32(ImGuiCol_FrameBg), true, style.FrameRounding); const int values_count_min = (plot_type == ImGuiPlotType_Lines) ? 2 : 1; - if (values_count >= 1)//values_count_min) + if (values_count >= values_count_min) { int res_w = ImMin((int)frame_size.x, values_count) + ((plot_type == ImGuiPlotType_Lines) ? -1 : 0); int item_count = values_count + ((plot_type == ImGuiPlotType_Lines) ? -1 : 0);