chenbo007 / svg-edit

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

Selection broken when no stroke #91

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set the stroke paint to None (shift-click on the red x)
2. Create an ellipse, a text element, rect
3. Selection will be broken when trying to select some of these elements

Basically it comes down to when the stroke attribute is not set (has no
value, not in the DOM) that the element cannot be selected.  This is
because of a JS error on line 110 in svg-editor.js:

Error: strokeColor is null

We need to check the values of strokeColor and fillColor and if they are
not set, explicitly set the JS value to none or something.

Original issue reported on code.google.com by codedr...@gmail.com on 13 Aug 2009 at 3:46

GoogleCodeExporter commented 9 years ago
Ok, simple fix.  Done in r372.

Original comment by codedr...@gmail.com on 13 Aug 2009 at 3:51