kimoa / svg-edit

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

Weird paths added when rotating certain paths #743

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. <svg width="640" height="480" xmlns="http://www.w3.org/2000/svg">
 <!-- Created with SVG-edit - http://svg-edit.googlecode.com/ -->
 <g>
  <title>Layer 1</title>
  <path d="m120.32999,276.47h-23.40298v-214.58s7.44901,0.753 11.47699,0.827c4.03802,0.073 11.92599,-0.827 11.92599,-0.827v214.58l0,0z"/>
 </g>
</svg>
2. Click on the shape, move it, and rotate it
3.

What is the expected output? What do you see instead?
There is a weird black shape that gets added and modified when rotating that 
seems to represent the rectangular shape without the rotate and triangular bit 
indicating rotation. Each time you rotate it, a new shape gets added to the 
canvas.

Please use labels and text to provide additional information.
This shape came from the center support of the scales in this image:
http://ian.umces.edu/diagrammer/editor/svg-editor.html?url=/imagelibrary/albums/
userpics/12789/iil-symbol-balance2.svg

If you test with this full image you notice that once these weird shapes have 
started appearing, it becomes impossible to drag/marquee select anything on the 
canvas.

Also, try this example:
<svg width="640" height="480" xmlns="http://www.w3.org/2000/svg">
 <!-- Created with SVG-edit - http://svg-edit.googlecode.com/ -->
 <g>
  <title>Layer 1</title>
  <path fill="#0000ff" d="m329.05811,281.00476c18.8797,0.37354 33.94421,1.40048 34.31396,2.70758c0.37512,1.30707 -13.29626,6.1622 -13.29626,6.1622h-38.40955s-15.81165,-4.76175 -15.90216,-6.25562c-0.09241,-1.49481 14.41595,-2.98645 33.29401,-2.61353l0,-0.00064z" />
  <path fill="#ff0000" d="m146.85699,114.087s6.815,11.487 33.246,11.394s34.084,-11.11401 34.084,-11.11401s-9.243,3.828 -34.272,3.361c-25.02699,-0.46899 -33.058,-3.643 -33.058,-3.643l0,0.002l0,0z"/>
 </g>
</svg>

Note that the red shape behaves perfectly, but the blue one has the same 
problem as described above.

Original issue reported on code.google.com by adrianbj...@gmail.com on 5 Dec 2010 at 11:04

GoogleCodeExporter commented 9 years ago
Hm, unable to confirm. Tried in FF4 and others. Does this bug still occur or 
was it maybe fixed since you first posted this?

Original comment by adeve...@gmail.com on 31 Jan 2011 at 8:41

GoogleCodeExporter commented 9 years ago
I think this must have been fixed by something else along the way - can't see 
any issues with any of the examples anymore.

Original comment by adrianbj...@gmail.com on 31 Jan 2011 at 8:51