mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 05:01:09 +00:00
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:
parent
55676c57bd
commit
04e8bd13a9
@ -1,3 +1,8 @@
|
||||
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)
|
||||
|
||||
Thu Nov 1 19:56:40 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkmain.c (gtk_main_do_event): ref/unref
|
||||
|
@ -1,3 +1,8 @@
|
||||
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)
|
||||
|
||||
Thu Nov 1 19:56:40 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkmain.c (gtk_main_do_event): ref/unref
|
||||
|
@ -1,3 +1,8 @@
|
||||
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)
|
||||
|
||||
Thu Nov 1 19:56:40 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkmain.c (gtk_main_do_event): ref/unref
|
||||
|
@ -1,3 +1,8 @@
|
||||
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)
|
||||
|
||||
Thu Nov 1 19:56:40 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkmain.c (gtk_main_do_event): ref/unref
|
||||
|
@ -1,3 +1,8 @@
|
||||
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)
|
||||
|
||||
Thu Nov 1 19:56:40 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkmain.c (gtk_main_do_event): ref/unref
|
||||
|
@ -1,3 +1,8 @@
|
||||
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)
|
||||
|
||||
Thu Nov 1 19:56:40 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkmain.c (gtk_main_do_event): ref/unref
|
||||
|
@ -1,3 +1,8 @@
|
||||
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)
|
||||
|
||||
Thu Nov 1 19:56:40 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkmain.c (gtk_main_do_event): ref/unref
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user