Correction to image handling code in context menu

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@954 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Jeff Schiller 2009-11-18 17:22:01 +00:00
parent 5f4caf6c53
commit 75dffc0d2f
1 changed files with 1 additions and 1 deletions

View File

@ -288,7 +288,7 @@ function svg_edit_setup() {
if (svgCanvas.getMode() == 'rotate' && elem != null) {
$('#angle').val(svgCanvas.getRotationAngle(elem));
return;
} else if(svgCanvas.addedNew && elem.nodeName == 'image') {
} else if(svgCanvas.addedNew && elem != null && elem.nodeName == 'image') {
promptImgURL();
}
var is_node = elem ? (elem.id && elem.id.indexOf('pathpointgrip') == 0) : false;