diff options
-rw-r--r-- | fitz/base_string.c | 3 | ||||
-rw-r--r-- | fitz/res_path.c | 4 | ||||
-rw-r--r-- | pdf/pdf_function.c | 2 | ||||
-rw-r--r-- | xps/xps_path.c | 10 |
4 files changed, 9 insertions, 10 deletions
diff --git a/fitz/base_string.c b/fitz/base_string.c index 8ed08911..60e20ac4 100644 --- a/fitz/base_string.c +++ b/fitz/base_string.c @@ -249,8 +249,7 @@ float fz_atof(const char *s) errno = 0; d = strtod(s, NULL); if (errno == ERANGE || isnan(d)) { - /* Return 1.0, as it's a small known value that won't cause a - divide by 0. */ + /* Return 1.0, as it's a small known value that won't cause a divide by 0. */ return 1.0; } d = CLAMP(d, -FLT_MAX, FLT_MAX); diff --git a/fitz/res_path.c b/fitz/res_path.c index 13705969..e3f07192 100644 --- a/fitz/res_path.c +++ b/fitz/res_path.c @@ -229,8 +229,8 @@ fz_bound_path(fz_context *ctx, fz_path *path, fz_stroke_state *stroke, fz_matrix * for it to be expanded in the stroked case below. */ if (path->len == 0) return fz_empty_rect; - /* A path must start with a moveto - and if that's all there is - * then the path is empty. */ + /* A path must start with a moveto - and if that's all there is + * then the path is empty. */ if (path->len == 3) return fz_empty_rect; diff --git a/pdf/pdf_function.c b/pdf/pdf_function.c index e1c53beb..cd99e14d 100644 --- a/pdf/pdf_function.c +++ b/pdf/pdf_function.c @@ -206,7 +206,7 @@ ps_push_real(ps_stack *st, float n) if (isnan(n)) { /* Push 1.0, as it's a small known value that won't - cause a divide by 0. Same reason as in fz_atof. */ + * cause a divide by 0. Same reason as in fz_atof. */ n = 1.0; } st->stack[st->sp].u.f = CLAMP(n, -FLT_MAX, FLT_MAX); diff --git a/xps/xps_path.c b/xps/xps_path.c index 6720390d..696a78b9 100644 --- a/xps/xps_path.c +++ b/xps/xps_path.c @@ -865,7 +865,7 @@ xps_parse_path(xps_document *doc, fz_matrix ctm, char *base_uri, xps_resource *d fz_path *stroke_path = NULL; fz_rect area; int fill_rule; - int dash_len = 0; + int dash_len = 0; /* * Extract attributes and extended attributes. @@ -937,8 +937,8 @@ xps_parse_path(xps_document *doc, fz_matrix ctm, char *base_uri, xps_resource *d stroke_tag = NULL; } - if (stroke_att || stroke_tag) - { + if (stroke_att || stroke_tag) + { if (stroke_dash_array_att) { char *s = stroke_dash_array_att; @@ -949,7 +949,7 @@ xps_parse_path(xps_document *doc, fz_matrix ctm, char *base_uri, xps_resource *d s++; if (*s) /* needed in case of a space before the last quote */ dash_len++; - + while (*s && *s != ' ') s++; } @@ -1075,7 +1075,7 @@ xps_parse_path(xps_document *doc, fz_matrix ctm, char *base_uri, xps_resource *d fz_free_path(doc->ctx, stroke_path); fz_free_path(doc->ctx, path); path = NULL; - fz_drop_stroke_state(doc->ctx, stroke); + fz_drop_stroke_state(doc->ctx, stroke); if (clip_att || clip_tag) fz_pop_clip(doc->dev); |