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
master
Kevin Kwok 2009-09-04 22:23:30 +00:00
parent ccef6a0f49
commit 852657cc61
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ function svg_edit_setup() {
// updates the toolbar (colors, opacity, etc) based on the selected element // updates the toolbar (colors, opacity, etc) based on the selected element
var updateToolbar = function() { 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 // get opacity values
var fillOpacity = parseFloat(selectedElement.getAttribute("fill-opacity")); var fillOpacity = parseFloat(selectedElement.getAttribute("fill-opacity"));
if (isNaN(fillOpacity)) { if (isNaN(fillOpacity)) {