Return value from non-void function

This commit is contained in:
Shixin Zeng 2009-08-20 23:56:52 +03:00 committed by Tor Lillqvist
parent bbe16ec60f
commit 02457e3a93

View File

@ -3243,7 +3243,7 @@ gtk_print_operation_get_has_selection (GtkPrintOperation *op)
gint
gtk_print_operation_get_n_pages_to_print (GtkPrintOperation *op)
{
g_return_if_fail (GTK_IS_PRINT_OPERATION (op));
g_return_val_if_fail (GTK_IS_PRINT_OPERATION (op), -1);
return op->priv->nr_of_pages_to_print;
}