diff options
author | Simon Bünzli <zeniko@gmail.com> | 2015-01-07 23:24:30 +0100 |
---|---|---|
committer | Simon Bünzli <zeniko@gmail.com> | 2015-01-20 20:55:57 +0100 |
commit | 8fd4ad0a0ba69e5ab7d52b486073d050e3d8c29c (patch) | |
tree | 55976112c990f753ee11380a19851605ecd1a232 /source | |
parent | ce240962933e0e7a6ad452200ea12f0c21e00666 (diff) | |
download | mupdf-8fd4ad0a0ba69e5ab7d52b486073d050e3d8c29c.tar.xz |
remove some lonely tabs and move some braces onto their own lines
Diffstat (limited to 'source')
-rw-r--r-- | source/pdf/pdf-function.c | 6 | ||||
-rw-r--r-- | source/pdf/pdf-store.c | 3 | ||||
-rw-r--r-- | source/pdf/pdf-xref.c | 6 |
3 files changed, 9 insertions, 6 deletions
diff --git a/source/pdf/pdf-function.c b/source/pdf/pdf-function.c index b94e508a..00920732 100644 --- a/source/pdf/pdf-function.c +++ b/source/pdf/pdf-function.c @@ -997,10 +997,10 @@ load_sample_func(pdf_function *func, pdf_document *doc, pdf_obj *dict, int num, { unsigned int x; float s; - + if (fz_is_eof_bits(stream)) fz_throw(ctx, FZ_ERROR_GENERIC, "truncated sample function stream"); - + switch (bps) { case 1: s = fz_read_bits(stream, 1); break; @@ -1029,7 +1029,7 @@ load_sample_func(pdf_function *func, pdf_document *doc, pdf_obj *dict, int num, default: fz_throw(ctx, FZ_ERROR_GENERIC, "sample stream bit depth %d unsupported", bps); } - + func->u.sa.samples[i] = s; } } diff --git a/source/pdf/pdf-store.c b/source/pdf/pdf-store.c index dfb2f54c..f8b44c44 100644 --- a/source/pdf/pdf-store.c +++ b/source/pdf/pdf-store.c @@ -40,7 +40,8 @@ pdf_debug_key(FILE *out, void *key_) if (pdf_is_indirect(key)) { fprintf(out, "(%d %d R) ", pdf_to_num(key), pdf_to_gen(key)); - } else + } + else pdf_fprint_obj(out, key, 0); } #endif diff --git a/source/pdf/pdf-xref.c b/source/pdf/pdf-xref.c index 58db1d9a..ec2ff8f5 100644 --- a/source/pdf/pdf-xref.c +++ b/source/pdf/pdf-xref.c @@ -1640,11 +1640,13 @@ pdf_load_obj_stm(pdf_document *doc, int num, int gen, pdf_lexbuf *buf, int targe * a pointer to the old one will be left with a * stale pointer. Instead, we drop the new one * and trust that the old one is correct. */ - if (entry->obj) { + if (entry->obj) + { if (pdf_objcmp(entry->obj, obj)) fz_warn(ctx, "Encountered new definition for object %d - keeping the original one", numbuf[i]); pdf_drop_obj(obj); - } else + } + else entry->obj = obj; if (numbuf[i] == target) ret_entry = entry; |