Skip to content
Snippets Groups Projects
Commit ebdc95ad authored by Dan Granville's avatar Dan Granville
Browse files

do not try to parseRectangle on whole-canvas annotations (fixes #567)

parent f6598d95
No related branches found
No related tags found
No related merge requests found
......@@ -90,10 +90,12 @@
return deferred;
} else if (annotation.on.selector.value.indexOf('<svg') !== -1) {
shapeArray = _this.svgOverlay.parseSVG(annotation.on.selector.value, annotation);
} else {
} else if (annotation.on.selector.value.indexOf('xywh=') !== -1) {
shapeArray = _this.parseRectangle(annotation.on.selector.value, annotation);
} else {
return deferred;
}
} else if (annotation.on && typeof annotation.on === 'string') {
} else if (annotation.on && typeof annotation.on === 'string' && annotation.on.indexOf('xywh=') !== -1) {
shapeArray = _this.parseRectangle(annotation.on, annotation);
} else {
return deferred;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment