Fixed Issue 140: Prevent zero-length lines from being created
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@497 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
b81ce1c8e9
commit
96fbe69b9d
|
@ -1878,7 +1878,7 @@ function SvgCanvas(c)
|
|||
break;
|
||||
case "line":
|
||||
keep = (element.getAttribute('x1') != element.getAttribute('x2') ||
|
||||
element.getAttribute('y1') == element.getAttribute('y2'));
|
||||
element.getAttribute('y1') != element.getAttribute('y2'));
|
||||
break;
|
||||
case "square":
|
||||
case "rect":
|
||||
|
|
Loading…
Reference in New Issue