summaryrefslogtreecommitdiff
path: root/xps
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2011-10-19 14:53:30 -0700
committerMichael Vrhel <michael.vrhel@artifex.com>2011-10-19 14:54:26 -0700
commit856eedc584a224bd311fa7688fc29ba487521dfb (patch)
treefe0278a039d3e84380a5d3066ce77d27a35876d3 /xps
parent3d3e4f5d6e83539fc5a5877ef6d1e3591ec25c49 (diff)
Fix for Bug 692509. Issues with parsing of dashed line attributes.
Problem was caused by a space preceding the ending quote, which gave the dashed line lengths.
Diffstat (limited to 'xps')
-rw-r--r--xps/xpspath.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xps/xpspath.c b/xps/xpspath.c
index dec2803ff..52a2ec962 100644
--- a/xps/xpspath.c
+++ b/xps/xpspath.c
@@ -912,7 +912,8 @@ xps_parse_path(xps_context_t *ctx, char *base_uri, xps_resource_t *dict, xps_ite
{
while (*s == ' ')
s++;
- dash_array[dash_count++] = atof(s) * linewidth;
+ if (*s) /* needed in case of a space before the last quote */
+ dash_array[dash_count++] = atof(s) * linewidth;
while (*s && *s != ' ')
s++;
}