Fixed 50% opacity on new Element bug
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@445 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
fa5a5f2525
commit
2f4043176c
|
@ -1891,10 +1891,10 @@ function SvgCanvas(c)
|
||||||
element = null;
|
element = null;
|
||||||
} else if (element != null) {
|
} else if (element != null) {
|
||||||
canvas.addedNew = true;
|
canvas.addedNew = true;
|
||||||
canvas.addToSelection([element], true);
|
|
||||||
element.setAttribute("opacity", current_opacity);
|
element.setAttribute("opacity", current_opacity);
|
||||||
cleanupElement(element);
|
cleanupElement(element);
|
||||||
selectorManager.update();
|
selectorManager.update();
|
||||||
|
canvas.addToSelection([element], true);
|
||||||
// we create the insert command that is stored on the stack
|
// we create the insert command that is stored on the stack
|
||||||
// undo means to call cmd.unapply(), redo means to call cmd.apply()
|
// undo means to call cmd.unapply(), redo means to call cmd.apply()
|
||||||
addCommandToHistory(new InsertElementCommand(element));
|
addCommandToHistory(new InsertElementCommand(element));
|
||||||
|
|
Loading…
Reference in New Issue