diff options
author | Javier Jardón <jjardon@gnome.org> | 2009-10-21 02:07:26 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2009-10-21 02:08:18 +0200 |
commit | 670e141b3a23c9578dcffe7b04d6a0ff84404bec (patch) | |
tree | 8ad059c6065f53ceca8d516ad5bd3c12dbfea684 /gtk/gtkprintoperation.c | |
parent | 8e70bc988b5fc7589ee949be2f8f768bfd1a173d (diff) | |
download | gtk+-670e141b3a23c9578dcffe7b04d6a0ff84404bec.tar.gz |
Fix some compilation warning
Added some default cases and assert if reached
Diffstat (limited to 'gtk/gtkprintoperation.c')
-rw-r--r-- | gtk/gtkprintoperation.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkprintoperation.c b/gtk/gtkprintoperation.c index c8a85e7749..2d01148a94 100644 --- a/gtk/gtkprintoperation.c +++ b/gtk/gtkprintoperation.c @@ -2496,6 +2496,10 @@ common_render_page (GtkPrintOperation *op, x = columns - 1 - (priv->page_position / rows) % columns; y = rows - 1 - priv->page_position % rows; break; + default: + g_assert_not_reached(); + x = 0; + y = 0; } if (priv->manual_number_up == 4 || priv->manual_number_up == 9 || priv->manual_number_up == 16) |