Fixed issue 657 (color picker)

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1689 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Alexis Deveria
2010-08-30 17:17:57 +00:00
parent e33bd98ea4
commit 292dd46316
4 changed files with 14 additions and 18 deletions

View File

@@ -2263,7 +2263,6 @@ var groupSvgElem = this.groupSvgElem = function(elem) {
$(g).append(elem).data('gsvg', elem)[0].id = getNextId();
}
// Function: copyElem
// Create a clone of an element, updating its ID and its children's IDs when needed
//
@@ -2785,7 +2784,11 @@ this.setRotationAngle = function(val, preventUndo) {
var center = transformPoint(cx,cy,transformListToTransform(tlist).matrix);
var R_nc = svgroot.createSVGTransform();
R_nc.setRotate(val, center.x, center.y);
tlist.insertItemBefore(R_nc,0);
if(tlist.numberOfItems) {
tlist.insertItemBefore(R_nc, 0);
} else {
tlist.appendItem(R_nc);
}
}
else if (tlist.numberOfItems == 0) {
elem.removeAttribute("transform");
@@ -10614,7 +10617,6 @@ this.moveSelectedElements = function(dx,dy,undoable) {
xform.setTranslate(dx,dy);
}
console.log('num:',tlist.numberOfItems);
if(tlist.numberOfItems) {
tlist.insertItemBefore(xform, 0);
} else {