From 96fbe69b9d111d3fc6752341cbc60b76b7788a50 Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Fri, 28 Aug 2009 20:18:27 +0000 Subject: [PATCH] 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 --- editor/svgcanvas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 3ec22a20..41b33031 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -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":