diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ChangeLog.ja | 5 | ||||
-rw-r--r-- | src/printing.c | 3 |
3 files changed, 13 insertions, 0 deletions
@@ -1,5 +1,10 @@ 2006-12-12 + * src/printing.c: draw_page(): fixed crash on the request of a page + which is out of range. + +2006-12-12 + * src/printing.c: reimplemented multiple page printing. Implemented printing of MIME part using GtkPrintOperation. diff --git a/ChangeLog.ja b/ChangeLog.ja index 3cb4ca3d..77206289 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -1,5 +1,10 @@ 2006-12-12 + * src/printing.c: draw_page(): 範囲外のページの要求時のクラッシュを + 修正。 + +2006-12-12 + * src/printing.c: 複数ページの印刷を実装し直した。 GtkPrintOperation を使用して MIME パートの印刷を実装。 diff --git a/src/printing.c b/src/printing.c index 70cc776d..0aa0c01d 100644 --- a/src/printing.c +++ b/src/printing.c @@ -315,6 +315,9 @@ static void draw_page(GtkPrintOperation *operation, GtkPrintContext *context, gchar buf[BUFFSIZE]; gint count = 0; + if (page_nr >= print_data->n_pages) + return; + pinfo = g_ptr_array_index(print_data->pages, page_nr); mpinfo = pinfo->mpinfo; msginfo = mpinfo->msginfo; |