Skip to content

Commit e96e814

Browse files
committed
Fix - do not try to resize non-existing canvas
Normally never happens
1 parent d825d90 commit e96e814

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/JSRootPainter.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4560,6 +4560,8 @@
45604560

45614561
svg = this.svg_canvas();
45624562

4563+
if (svg.empty()) return false;
4564+
45634565
factor = svg.property('height_factor');
45644566

45654567
rect = this.check_main_resize(check_resize, null, factor);

0 commit comments

Comments
 (0)