range: Fix typo in allocate_trough

lower - upper results in something negative of course.
This commit is contained in:
Timm Bäder 2018-02-23 10:59:21 +01:00
parent 94093fd18e
commit fd20e42932

View File

@ -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)
{