Commit 966a269f authored by Hiroyuki Ikezoe's avatar Hiroyuki Ikezoe

Fix corrupted rendering.

checking in_num flag should be prior to in_frac.
Fix for bug #563933.
parent 2647e457
......@@ -497,22 +497,24 @@ rsvg_parse_path_data (RSVGParsePathCtx * ctx, const char *data)
sign = 1;
}
} else if (c == '.') {
if (in_frac) {
rsvg_path_end_of_number(ctx, val, sign, exp_sign, exp);
in_num = TRUE;
in_frac = FALSE;
in_exp = FALSE;
exp = 0;
exp_sign = 1;
exp_wait_sign = FALSE;
val = 0;
sign = 1;
}
else if (!in_num) {
in_num = TRUE;
if (!in_num) {
in_frac = TRUE;
val = 0;
}
in_frac = TRUE;
else if (in_frac) {
rsvg_path_end_of_number(ctx, val, sign, exp_sign, exp);
in_frac = FALSE;
in_exp = FALSE;
exp = 0;
exp_sign = 1;
exp_wait_sign = FALSE;
val = 0;
sign = 1;
}
else {
in_frac = TRUE;
}
in_num = TRUE;
frac = 1;
} else if ((c == 'E' || c == 'e') && in_num) {
in_exp = TRUE;
......
<?xml version="1.0" encoding="UTF-8" ?>
<svg height="200" id="svg2" version="1.0" width="200" xmlns="http://www.w3.org/2000/svg">
<path d="M 0 0 l 100.1 0.1 0 100 -100 0 0 -100 z"/>
<path d="M 100 100 l 100.1.1 0 100 -100 0 0 -100 z"/>
</svg>
This diff is collapsed.
......@@ -5,6 +5,8 @@
bugs/388545
bugs/403357
bugs/548494
bugs/563933
samples/artwork
samples/butterfly
samples/arrows
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment