- Fix rectangle/image/square/foreignObject (fixes #262)

master
Brett Zamir 2018-06-25 13:10:46 +08:00
parent 9eeb0b150c
commit 30b2f3cfe1
1 changed files with 1 additions and 1 deletions

View File

@ -2144,7 +2144,7 @@ const mouseUp = function (evt) {
case 'image':
attrs = $(element).attr(['width', 'height']);
// Image should be kept regardless of size (use inherit dimensions later)
keep = (attrs.width !== '0' || attrs.height !== '0') || currentMode === 'image';
keep = (attrs.width || attrs.height) || currentMode === 'image';
break;
case 'circle':
keep = (element.getAttribute('r') !== '0');