From 1807b25b9aa09b28e01fb5e7dc4186277e4852c9 Mon Sep 17 00:00:00 2001 From: ocornut Date: Thu, 3 Sep 2026 15:29:37 +0200 Subject: [PATCH] ScaleValueFromRatioT: removed unnecessary check, amend f27af1b20. --- imgui_widgets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui_widgets.cpp b/imgui_widgets.cpp index 752910810..2a207f6f0 100644 --- a/imgui_widgets.cpp +++ b/imgui_widgets.cpp @@ -3085,7 +3085,7 @@ TYPE ImGui::ScaleValueFromRatioT(ImGuiDataType data_type, float t, TYPE v_min, T { result = ImLerp(v_min, v_max, t); } - else if (t < 1.0) + else // t is already < 1.0 here { // - For integer values we want the clicking position to match the grab box so we round above // This code is carefully tuned to work with large values (e.g. high ranges of U64) while preserving this property..