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-75d572ba1dddmaster
parent
ccef6a0f49
commit
852657cc61
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue