Correction to image handling code in context menu
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@954 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
5f4caf6c53
commit
75dffc0d2f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue