summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-appearance.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-01-20 14:21:55 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-01-20 16:34:52 +0100
commit8fffb693819323722cd6f8cd94135546bfc39bca (patch)
tree587bb490de8a3a4b825bdcfb767df015454dfe29 /source/pdf/pdf-appearance.c
parent201388486324758d08ab3b1be4cc0a84b8b1ae9a (diff)
downloadmupdf-8fffb693819323722cd6f8cd94135546bfc39bca.tar.xz
Various formatting cleanups.
Diffstat (limited to 'source/pdf/pdf-appearance.c')
-rw-r--r--source/pdf/pdf-appearance.c6
1 files changed, 2 insertions, 4 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);