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:
Owen Taylor 2001-11-02 01:13:31 +00:00 committed by Owen Taylor
parent 55676c57bd
commit 04e8bd13a9
8 changed files with 38 additions and 2 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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