diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-01-20 14:21:55 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-01-20 16:34:52 +0100 |
commit | 8fffb693819323722cd6f8cd94135546bfc39bca (patch) | |
tree | 587bb490de8a3a4b825bdcfb767df015454dfe29 /source/pdf | |
parent | 201388486324758d08ab3b1be4cc0a84b8b1ae9a (diff) | |
download | mupdf-8fffb693819323722cd6f8cd94135546bfc39bca.tar.xz |
Various formatting cleanups.
Diffstat (limited to 'source/pdf')
-rw-r--r-- | source/pdf/pdf-appearance.c | 6 | ||||
-rw-r--r-- | source/pdf/pdf-form.c | 3 | ||||
-rw-r--r-- | source/pdf/pdf-interpret.c | 2 | ||||
-rw-r--r-- | source/pdf/pdf-write.c | 2 | ||||
-rw-r--r-- | source/pdf/pdf-xref.c | 4 |
5 files changed, 7 insertions, 10 deletions
diff --git a/source/pdf/pdf-appearance.c b/source/pdf/pdf-appearance.c index ec40dfd8..466978b5 100644 --- a/source/pdf/pdf-appearance.c +++ b/source/pdf/pdf-appearance.c @@ -1233,8 +1233,7 @@ void pdf_update_listbox_appearance(fz_context *ctx, pdf_document *doc, pdf_obj * } } - /* If ANY of the entries are not an array then just use the opts not - the vals. */ + /* If ANY of the entries are not an array then just use the opts not the vals. */ if (val_opt_ok) pos = vals; else @@ -1323,8 +1322,7 @@ void pdf_update_listbox_appearance(fz_context *ctx, pdf_document *doc, pdf_obj * info.font_rec.da_rec.font_size = fontsize; lineheight = ascent - descent; - /* Check if all items will fit. If not, then place the "selected" item - at the top of our widget rect. */ + /* Check if all items will fit. If not, then place the "selected" item at the top of our widget rect. */ items_height = n * fontsize * lineheight; if (items_height <= height || !num_sel) fz_translate(&tm, clip_rect.x0, clip_rect.y1 - lineheight * fontsize); diff --git a/source/pdf/pdf-form.c b/source/pdf/pdf-form.c index 1f101007..78adf542 100644 --- a/source/pdf/pdf-form.c +++ b/source/pdf/pdf-form.c @@ -1294,8 +1294,7 @@ int pdf_choice_widget_options(fz_context *ctx, pdf_document *doc, pdf_widget *tw for (i = 0; i < n; i++) { m = pdf_array_len(ctx, pdf_array_get(ctx, optarr, i)); - /* If it is a two element array, the second item is the one that we want - if we want the listing value */ + /* If it is a two element array, the second item is the one that we want if we want the listing value. */ if (m == 2) if (exportval) opts[i] = pdf_to_str_buf(ctx, pdf_array_get(ctx, pdf_array_get(ctx, optarr, i), 0)); diff --git a/source/pdf/pdf-interpret.c b/source/pdf/pdf-interpret.c index f876925a..b1adc576 100644 --- a/source/pdf/pdf-interpret.c +++ b/source/pdf/pdf-interpret.c @@ -1175,7 +1175,7 @@ pdf_process_stream(fz_context *ctx, pdf_processor *proc, pdf_csi *csi, fz_stream } else { - cookie->errors++; + cookie->errors++; } if (!ignoring_errors) { diff --git a/source/pdf/pdf-write.c b/source/pdf/pdf-write.c index 5d05e496..d785f332 100644 --- a/source/pdf/pdf-write.c +++ b/source/pdf/pdf-write.c @@ -2022,7 +2022,7 @@ static void writexrefstream(fz_context *ctx, pdf_document *doc, pdf_write_state index = pdf_new_array(ctx, doc, 2); pdf_dict_put_drop(ctx, dict, PDF_NAME_Index, index); - /* opts->gen_list[num] is already initialized by fz_calloc. */ + /* opts->gen_list[num] is already initialized by fz_calloc. */ opts->use_list[num] = 1; opts->ofs_list[num] = opts->first_xref_entry_offset; diff --git a/source/pdf/pdf-xref.c b/source/pdf/pdf-xref.c index 50642ab4..3bcf5d79 100644 --- a/source/pdf/pdf-xref.c +++ b/source/pdf/pdf-xref.c @@ -717,7 +717,7 @@ pdf_xref_find_subsection(fz_context *ctx, pdf_document *doc, fz_off_t ofs, int l /* Different cases here. Case 1) We might be asking for a * subsection (or a subset of a subsection) that we already - * have - Just return it. Case 2) We might be asking for a + * have - Just return it. Case 2) We might be asking for a * completely new subsection - Create it and return it. * Case 3) We might have an overlapping one - Create a 'solid' * subsection and return that. */ @@ -2759,7 +2759,7 @@ pdf_document *pdf_create_document(fz_context *ctx) pdf_dict_put_drop(ctx, pages, PDF_NAME_Type, PDF_NAME_Pages); pdf_dict_put_drop(ctx, pages, PDF_NAME_Count, pdf_new_int(ctx, doc, 0)); pdf_dict_put_drop(ctx, pages, PDF_NAME_Kids, pdf_new_array(ctx, doc, 1)); - /* Set the trailer of the final xref section. */ + /* Set the trailer of the final xref section. */ doc->xref_sections[0].trailer = trailer; } fz_catch(ctx) |