forked from AuroraMiddleware/gtk
range: Fix typo in allocate_trough
lower - upper results in something negative of course.
This commit is contained in:
parent
94093fd18e
commit
fd20e42932
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user