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 + ")"); cur_shape.setAttribute('transform', "translate(" + x + "," + y + ") scale(0.005) translate(" + -x + "," + -y + ")");
// console.time('b'); // console.time('b');
canv.recalculateDimensions(cur_shape); canv.recalculateDimensions(cur_shape);
console.log(cur_shape.getAttribute('d'));
var tlist = canv.getTransformList(cur_shape); var tlist = canv.getTransformList(cur_shape);
lastBBox = cur_shape.getBBox(); lastBBox = cur_shape.getBBox();
return { return {

View File

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