From 118c0c766c1e04e0d385623a028c403571d42b16 Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Mon, 28 Dec 2009 14:57:40 +0000 Subject: [PATCH] Fixed pathedit mode for paths that were rotated, then had points recalced by a matrix git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1117 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 46c820a9..f9f1acb4 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -3998,7 +3998,12 @@ function BatchCommand(text) { if (selectedElements[0].nodeName == "path" && selectedElements[1] == null) { if (current_path == t) { current_mode = "pathedit"; - + + // This resets the pathedit selection in case it + // was a rotate that turned into a matrix + var angle = canvas.getRotationAngle(t); + if(!angle) setPointContainerTransform(); + // recalculate current_path_pts recalcPathPoints(); canvas.clearSelection();