![]() |
|
ReaderSvg crash when open file - Printable Version +- AB4D Forum (https://forum.ab4d.com) +-- Forum: Products Forums (https://forum.ab4d.com/forumdisplay.php?fid=4) +--- Forum: ViewerSvg and Ab2d.ReaderSvg (https://forum.ab4d.com/forumdisplay.php?fid=6) +--- Thread: ReaderSvg crash when open file (/showthread.php?tid=123) |
ReaderSvg crash when open file - Senecarus - 06-09-2011 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. RE: ReaderSvg crash when open file - abenedik - 06-15-2011 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#TransformAttribute). Anyway have put this into my todo list and will at least prevent throwing exception in this situation. RE: ReaderSvg crash when open file - Senecarus - 06-15-2011 Thanks you very much! RE: ReaderSvg crash when open file - addie123 - 12-27-2012 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. |