abort printing when the range is NULL. (#478803)
2007-09-21 Jean Brefort <jean.brefort@normalesup.org> * gtk/gtkprintoperation.c: (print_pages_idle): abort printing when the range is NULL. (#478803) svn path=/trunk/; revision=18853
This commit is contained in:
committed by
Jean Bréfort
parent
1752db289b
commit
e7131b2f91
@ -1,3 +1,8 @@
|
|||||||
|
2007-09-21 Jean Brefort <jean.brefort@normalesup.org>
|
||||||
|
|
||||||
|
* gtk/gtkprintoperation.c: (print_pages_idle): abort printing
|
||||||
|
when the range is NULL. (#478803)
|
||||||
|
|
||||||
2007-09-21 Michael Natterer <mitch@imendio.com>
|
2007-09-21 Michael Natterer <mitch@imendio.com>
|
||||||
|
|
||||||
* gtk/gtktextview.c (gtk_text_view_move_cursor_internal)
|
* gtk/gtktextview.c (gtk_text_view_move_cursor_internal)
|
||||||
|
|||||||
@ -2098,6 +2098,11 @@ print_pages_idle (gpointer user_data)
|
|||||||
*/
|
*/
|
||||||
if (priv->print_pages == GTK_PRINT_PAGES_RANGES)
|
if (priv->print_pages == GTK_PRINT_PAGES_RANGES)
|
||||||
{
|
{
|
||||||
|
if (priv->page_ranges == NULL) {
|
||||||
|
g_warning ("no pages to print");
|
||||||
|
priv->cancelled = TRUE;
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
data->ranges = priv->page_ranges;
|
data->ranges = priv->page_ranges;
|
||||||
data->num_ranges = priv->num_page_ranges;
|
data->num_ranges = priv->num_page_ranges;
|
||||||
for (i = 0; i < data->num_ranges; i++)
|
for (i = 0; i < data->num_ranges; i++)
|
||||||
|
|||||||
Reference in New Issue
Block a user