From 2f4043176cfcec7c9c50cb028b33d06c7b525ebc Mon Sep 17 00:00:00 2001 From: Alexis Deveria Date: Fri, 21 Aug 2009 17:02:51 +0000 Subject: [PATCH] Fixed 50% opacity on new Element bug git-svn-id: http://svg-edit.googlecode.com/svn/trunk@445 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svgcanvas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/svgcanvas.js b/editor/svgcanvas.js index 0255d1c1..e6db5b6c 100644 --- a/editor/svgcanvas.js +++ b/editor/svgcanvas.js @@ -1891,10 +1891,10 @@ function SvgCanvas(c) element = null; } else if (element != null) { canvas.addedNew = true; - canvas.addToSelection([element], true); element.setAttribute("opacity", current_opacity); cleanupElement(element); selectorManager.update(); + canvas.addToSelection([element], true); // we create the insert command that is stored on the stack // undo means to call cmd.unapply(), redo means to call cmd.apply() addCommandToHistory(new InsertElementCommand(element));