From 449c47c789302f5bb9287bfacfa7640c35abbc67 Mon Sep 17 00:00:00 2001 From: ocornut Date: Mon, 28 Nov 2016 11:05:24 +0100 Subject: [PATCH] SliderInt, SliderFloat() interacting enforce modifying to the value to be consistent with other widget behaviors (#919) --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 42396eeb..23ed4ca4 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -6551,7 +6551,7 @@ bool ImGui::SliderBehavior(const ImRect& frame_bb, ImGuiID id, float* v, float v // Round past decimal precision new_value = RoundScalar(new_value, decimal_precision); - if (*v != new_value && (v_min != v_max)) + if (*v != new_value) { *v = new_value; value_changed = true;