chenbo007 / svg-edit

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

Contextual Tools, Selectors not updated after Source Editing #94

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Draw an ellipse and select it
2. Click edit source, double a radius of the ellipse
3. Click Save

The ellipse is visibly updated (the radius is doubled), but the selector
box and the radius contextual edit field is not updated.

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

GoogleCodeExporter commented 9 years ago
Actually I think the easiest way to handle this is to simply clear the 
selection upon
going into the source editor (it would be very hard to ensure the same object is
selected again since the whole SVG DOM is re-serialized and anything could have 
changed).

That makes this a really simple fix.

Original comment by codedr...@gmail.com on 17 Aug 2009 at 7:31

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r407.

Original comment by adeve...@gmail.com on 18 Aug 2009 at 2:34

GoogleCodeExporter commented 9 years ago
Instead of clearing it when going to the source editor, I made it clear when any
changes are actually made. That way the selection will still remain when 
cancelling out. 

Original comment by adeve...@gmail.com on 18 Aug 2009 at 2:36

GoogleCodeExporter commented 9 years ago

Original comment by codedr...@gmail.com on 20 Aug 2009 at 8:59