summaryrefslogtreecommitdiff
path: root/gtk/gtkrange.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2018-02-23 10:59:21 +0100
committerTimm Bäder <mail@baedert.org>2018-02-23 10:59:21 +0100
commitfd20e42932ae289074dd35d667352b8bb02ba225 (patch)
tree6f4be967f5082313a681bbcd4afa99dc46cd8e0e /gtk/gtkrange.c
parent94093fd18ebfdd562f3697de88b411f1a66a26f6 (diff)
downloadgtk+-fd20e42932ae289074dd35d667352b8bb02ba225.tar.gz
range: Fix typo in allocate_trough
lower - upper results in something negative of course.
Diffstat (limited to 'gtk/gtkrange.c')
-rw-r--r--gtk/gtkrange.c2
1 files changed, 1 insertions, 1 deletions
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)
{