fixing multiple icons

master
Mark MacKay 2012-06-24 11:47:29 -05:00
parent 3adad1fdd7
commit c8da5c159d
2 changed files with 3 additions and 5 deletions

View File

@ -263,7 +263,6 @@ svgEditor.addExtension("shapes", function() {
cur_shape.setAttribute('transform', "translate(" + x + "," + y + ") scale(0.005) translate(" + -x + "," + -y + ")");
// console.time('b');
canv.recalculateDimensions(cur_shape);
console.log(cur_shape.getAttribute('d'));
var tlist = canv.getTransformList(cur_shape);
lastBBox = cur_shape.getBBox();
return {

View File

@ -573,7 +573,7 @@
selectedElement = elems[0];
}
} else {
setIcon('#tool_select', 'select');
setIcon('#tool_select', 'select');
}
}
@ -680,8 +680,7 @@
updateToolbar();
}
} // if (elem != null)
// Deal with pathedit mode
}
togglePathEditMode(is_node, elems);
updateContextPanel();
svgCanvas.runExtensions("selectedChanged", {
@ -2914,7 +2913,7 @@
return;
}
$(elem).append(icon);
$(elem).find("img").replaceWith(icon);
}
var ua_prefix;