Fixed bug related to path reorientation

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@984 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Alexis Deveria 2009-11-30 21:33:37 +00:00
parent 37392020ce
commit 7cbb5ebddc
2 changed files with 3 additions and 2 deletions

View File

@ -379,6 +379,7 @@ function svg_edit_setup() {
var no_path = $.inArray(elname, ['image', 'text', 'path', 'g']) == -1;
$('#tool_topath').toggle(no_path);
$('#tool_reorient').toggle(elname == 'path');
$('#tool_reorient').toggleClass('tool_button_disabled', angle == 0);
} else {
var point = svgCanvas.getNodePoint();
if(point) {

View File

@ -2725,9 +2725,9 @@ function BatchCommand(text) {
resetPathOrientation(elem, angle);
addCommandToHistory(batchCmd);
current_path = elem;
resetPointGrips();
setPointContainerTransform(""); // Maybe this should be in resetPointGrips?
removeAllPointGripsFromPath();
resetPointGrips();
canvas.clearPath();
canvas.addToSelection([elem], true);
call("changed", selectedElements);