AB4D Forum

Full Version: ReaderSvg crash when open file
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello! I'm sorry for my English. We use licensed SvgReader library (ReaderSvg.4.3.3904) and we have crash on some svg files. I attached one for example.
Could we hope that this problem will be fixed in future version?
And may be you could tell me what is problem with this file and I will be able to expalin it to my customers?
Thanks in advance.
I have checked the file you send and have found a problem in the svg file.

The transformations for the first group are not defined correctly (there are additional spaces added):
<g transform="rotate(10) scale (1) translate (100,10)">

This line should be:
<g transform="rotate(10) scale(1) translate(100,10)">

without space after scale and translate.
After that change the file is opened correctly.

I have checked the W3C specifications and there it looks that the space should not be there (http://www.w3.org/TR/SVG11/coords.html#T...mAttribute).

Anyway have put this into my todo list and will at least prevent throwing exception in this situation.
Thanks you very much!
I have checked the file you send and have found a problem in the svg file.

The transformations for the first group are not defined correctly (there are additional spaces added):
<g transform="rotate(10) scale (1) translate (100,10)">

This line should be:
<g transform="rotate(10) scale(1) translate(100,10)">

without space after scale and translate.
After that change the file is opened correctly.