Patch for chained fractions in path data
Paul Dicker <[email protected]> Sun, 19 Feb 2012 15:28:31 +0100
| Newsgroups | gmane.comp.gnome.lib.librsvg.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello, This is my first patch ever, so please be patient... Some images like example.svg in the attachment don't render correctly. this happens if two numbers look like this: -1.23.45 (first number is -1.23, the second is 0.45) Changing two lines in rsvg-path.c remedies this. What should I do next with this? Paul ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Librsvg-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/librsvg-devel
test.patch
(text/x-patch, 534 B)
--- /home/pitdicker/Downloads/librsvg-2.35.2/rsvg-path.c
+++ /home/pitdicker/Downloads/librsvg-2.35.2/rsvg-path.patch.c
@@ -609,10 +609,11 @@
if (!in_num) {
in_frac = TRUE;
val = 0;
+ sign = 1;
}
else if (in_frac) {
rsvg_path_end_of_number(ctx, val, sign, exp_sign, exp);
- in_frac = FALSE;
+ in_frac = TRUE;
in_exp = FALSE;
exp = 0;
exp_sign = 1;
example.svg
(image/svg+xml, 2.6 KB) - not displayed