From 852657cc6164fb1fbb585b1049df55b0940c93c2 Mon Sep 17 00:00:00 2001 From: Kevin Kwok Date: Fri, 4 Sep 2009 22:23:30 +0000 Subject: [PATCH] Selecting images does not set the fill and stroke (might be hackish) so it doesnt prevent adding of more shapes git-svn-id: http://svg-edit.googlecode.com/svn/trunk@579 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/svg-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 87c2b4e4..d1143a16 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -81,7 +81,7 @@ function svg_edit_setup() { // updates the toolbar (colors, opacity, etc) based on the selected element var updateToolbar = function() { - if (selectedElement != null) { //the image thing might be a hack. + if (selectedElement != null && selectedElement.tagName != "image") { //the image thing might be a hack. // get opacity values var fillOpacity = parseFloat(selectedElement.getAttribute("fill-opacity")); if (isNaN(fillOpacity)) {