ReaderSvg crash when open file
#1
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.


Attached Files
.svg   lion.svg (Size: 17.89 KB / Downloads: 1)
#2
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.
Andrej Benedik
#3
Thanks you very much!
#4
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.
  


Forum Jump:


Users browsing this thread:
1 Guest(s)