[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]
[XaraXtreme-commits] Commit Complete
Commit by : sandro
Repository : xara
Revision : 1682
Date : Wed Aug 9 17:35:34 BST 2006
Changed paths:
M /Trunk/XaraLX/filters/SVGFilter/utils.cpp
SVGFilter: fix floating point parsing in paths (fixes bug #1420)
Diff:
Index: Trunk/XaraLX/filters/SVGFilter/utils.cpp
===================================================================
--- Trunk/XaraLX/filters/SVGFilter/utils.cpp (revision 1681)
+++ Trunk/XaraLX/filters/SVGFilter/utils.cpp (revision 1682)
@@ -121,7 +121,17 @@
data = data.Mid(1);
while (data.Length() > 0 && IsNumberDigit(data[0])) {
s += data[0];
- data = data.Mid(1);
+ if (data[0] == 'e' || data[0] == 'E') {
+ data = data.Mid(1);
+ if (data.Length() < 1)
+ break;
+ if (data[0] == '+' || data[0] == '-') {
+ s += data[0];
+ data = data.Mid(1);
+ }
+ } else {
+ data = data.Mid(1);
+ }
}
}
double f;
Xara