Patch from George Lebl to fix division by zero for full scroll bars.
Thu Nov 1 20:09:31 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkrange.c: Patch from George Lebl to fix division by zero for full scroll bars. (#62114)
This commit is contained in:
@ -1958,8 +1958,9 @@ gtk_range_calc_layout (GtkRange *range,
|
||||
|
||||
y = top;
|
||||
|
||||
y += (bottom - top - height) * ((adjustment_value - range->adjustment->lower) /
|
||||
(range->adjustment->upper - range->adjustment->lower - range->adjustment->page_size));
|
||||
if (range->adjustment->upper - range->adjustment->lower - range->adjustment->page_size != 0)
|
||||
y += (bottom - top - height) * ((adjustment_value - range->adjustment->lower) /
|
||||
(range->adjustment->upper - range->adjustment->lower - range->adjustment->page_size));
|
||||
|
||||
y = CLAMP (y, top, bottom);
|
||||
|
||||
|
Reference in New Issue
Block a user