Skip to content

Commit ccb2a94

Browse files
DomGriesocornut
authored andcommitted
Internal: SliderBehaviorT: Condition '!is_decimal' is always true (#2828)
1 parent 1425bec commit ccb2a94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imgui_widgets.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2430,7 +2430,7 @@ bool ImGui::SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_typ
24302430
FLOATTYPE v_new_off_f = (v_max - v_min) * clicked_t;
24312431
TYPE v_new_off_floor = (TYPE)(v_new_off_f);
24322432
TYPE v_new_off_round = (TYPE)(v_new_off_f + (FLOATTYPE)0.5);
2433-
if (!is_decimal && v_new_off_floor < v_new_off_round)
2433+
if (v_new_off_floor < v_new_off_round)
24342434
v_new = v_min + v_new_off_round;
24352435
else
24362436
v_new = v_min + v_new_off_floor;

0 commit comments

Comments
 (0)