4xx / svg-edit

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

Wrong d attribute when use path tool draw a line which has only 2 points. #1105

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.click path tool
2.click canvas (point A)
3.move cursor and click canvas (point B)
4.do not move cursor and click again (point B)
5.click 'Edit Source' tool and check svg source

What is the expected output? What do you see instead?
If point A is (100,100), B is (300,300), check path d attribute value.
Expected :  <path d="m100,100 l200,200" />
But I see:  <path d="m100,100 l200,200 l-200,-200z" />

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

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

Please provide any additional information below.

Original issue reported on code.google.com by cuixiping on 11 Jun 2013 at 4:01