diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c index 981409eb6d..ba37dbee34 100644 --- a/gtk/gtkrange.c +++ b/gtk/gtkrange.c @@ -1405,7 +1405,7 @@ gtk_range_allocate_trough (GtkGizmo *gizmo, level = CLAMP (priv->fill_level, lower, upper - page_size); - fill = (level - lower) / (lower - upper - page_size); + fill = (level - lower) / (upper - lower - page_size); if (priv->orientation == GTK_ORIENTATION_HORIZONTAL) {