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-75d572ba1ddd
master
Alexis Deveria 2009-08-28 20:18:27 +00:00
parent b81ce1c8e9
commit 96fbe69b9d
1 changed files with 1 additions and 1 deletions

View File

@ -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":