gtkhtml r9144 - branches/gnome-2-24/gtkhtml
- From: mbarnes svn gnome org
- To: svn-commits-list gnome org
- Subject: gtkhtml r9144 - branches/gnome-2-24/gtkhtml
- Date: Tue, 17 Feb 2009 04:14:53 +0000 (UTC)
Author: mbarnes
Date: Tue Feb 17 04:14:53 2009
New Revision: 9144
URL: http://svn.gnome.org/viewvc/gtkhtml?rev=9144&view=rev
Log:
2009-02-16 Matthew Barnes <mbarnes redhat com>
** Fixes bug #571621
* htmlengine-print.c (engine_print_draw_page):
Replace a g_assert() with g_return_if_fail().
Avoids a crash caused by a GtkPrint page range bug.
Modified:
branches/gnome-2-24/gtkhtml/ChangeLog
branches/gnome-2-24/gtkhtml/htmlengine-print.c
Modified: branches/gnome-2-24/gtkhtml/htmlengine-print.c
==============================================================================
--- branches/gnome-2-24/gtkhtml/htmlengine-print.c (original)
+++ branches/gnome-2-24/gtkhtml/htmlengine-print.c Tue Feb 17 04:14:53 2009
@@ -393,7 +393,7 @@
gint offset[2];
cairo_t *cr;
- g_assert (data->offsets->len > page_nr);
+ g_return_if_fail (data->offsets->len > page_nr);
offset[0] = g_array_index (data->offsets, gint, page_nr + 0);
offset[1] = g_array_index (data->offsets, gint, page_nr + 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]