4xx / svg-edit

Automatically exported from code.google.com/p/svg-edit
MIT License
0 stars 0 forks source link

Importing svg or ungrouping library svg produces errors #1198

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. import image - pick an svg
2. using the library extension with svgs and then ungrouping them

What is the expected output? What do you see instead?

I expect the svg to ungroup and then be able to drag select, but drag selected 
throws and error
ncaught TypeError: Cannot read property 'x' of null 

In what browser did you experience this problem? (Webkit, Chrome etc)

In what version of SVG-edit does the problem occur? 2.6

Importing the SVG appears to be fine, it seems to be when the svg is ungrouped 
maybe it has something to do with the use element it is put into on import?

Method draw imports svgs fine, I realise this was built off an older version 
http://editor.method.ac/ but would like this functionality in our development. 
(We and using a library of svgs and would like the ability to ungroup move or 
use individual elements and then group again)

One pointer. If you ungroup an element (producing the error on drag selection) 
and then refresh the browser, the elemnts stay ungrouped and the error is gone.

Original issue reported on code.google.com by Thomas.W...@gmail.com on 2 Apr 2014 at 3:00

GoogleCodeExporter commented 9 years ago
I don't know if the issue is related, but I made an issue in trunk related to 
ungrouping and null (when no elements had previously been selected). I'd 
appreciate it if you could confirm whether you are still seeing the problem in 
trunk.

Original comment by bret...@gmail.com on 8 May 2014 at 4:16