Gisellameloni / svg-edit

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

Lines disappear when editing nodes #1235

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Draw a poly line with multiple nodes
2. Move a node
3. Then try and move a second node and the line disappears.

In what browser did you experience this problem? (ALL, Firefox, Opera, etc)

Chrome

In what version of SVG-edit does the problem occur? (Latest trunk, 2.7.1,
etc)
All

Please provide any additional information below.

Original issue reported on code.google.com by jcrump...@gmail.com on 7 Aug 2014 at 2:50

GoogleCodeExporter commented 8 years ago
Uncaught IndexSizeError: Failed to execute 'replaceItem' on 'SVGPathSegList': 
The index provided (1) is greater than the maximum bound (0) in path.js line 287

Original comment by jcrump...@gmail.com on 7 Aug 2014 at 2:57

GoogleCodeExporter commented 8 years ago
Got this error too on the lastest trunk 2.7.1 The whole app is not usable 
because of this huge bug.

Original comment by devo...@gmail.com on 11 Dec 2014 at 11:00

GoogleCodeExporter commented 8 years ago
Any chance anyone has any ideas on how to fix this? Would be more than happy to 
just make the change locally if it meant getting path editing working again. 
Thanks!

Original comment by adamhow...@gmail.com on 15 Dec 2014 at 7:11

GoogleCodeExporter commented 8 years ago
I switch back to 2.4 version for now until someone fix this bug

Original comment by devo...@gmail.com on 15 Dec 2014 at 9:27

GoogleCodeExporter commented 8 years ago
After several hours, I believe I found the root of this bug. It seems to be the 
resetD function in svgcanvas.

resetD(path) takes out all the spaces in the path definition(i.e. "M100,100 
L50,50 L75,75 z" becomes "M100,100L50,50L75,75z" and this erases the path from 
the canvas because the browser doesn't know what to do with it.

And so far, best I can tell, deleting resetD(p) and removing all of its 
references has no negative effect on functionality.

So if you were banging your head against the wall like I was trying to fix this 
issue, give this a try.

Original comment by adamhow...@gmail.com on 17 Dec 2014 at 9:10

GoogleCodeExporter commented 8 years ago
Works for me. Great job.

Original comment by devo...@gmail.com on 18 Dec 2014 at 12:43

GoogleCodeExporter commented 8 years ago
Dont work for me :/

Original comment by Johan.Le...@gmail.com on 24 Feb 2015 at 8:17

GoogleCodeExporter commented 8 years ago
So... I found a solution, that is way less intrusive and points a bit more 
toward the problems origin.
Force svg-editor to believe it faces no other browser than an Internet Explorer 
by tweaking the browser checks. Return false for chrome and webkit and return 
true for IE... Voilá, no more disappearing lines and errors.

Original comment by Lars.Echterhoff on 23 Jun 2015 at 2:04