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)) {