From ad396e82b0560936984e8e7bbeffd0660b6b43e1 Mon Sep 17 00:00:00 2001 From: Marc Aubreville Date: Thu, 30 Apr 2026 18:53:39 +0200 Subject: [PATCH] Hopefully fixed registration issue. --- .../annotations/static/annotations/js/exact-quad-tree.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exact/exact/annotations/static/annotations/js/exact-quad-tree.js b/exact/exact/annotations/static/annotations/js/exact-quad-tree.js index 4f58c927..e0fe1da6 100644 --- a/exact/exact/annotations/static/annotations/js/exact-quad-tree.js +++ b/exact/exact/annotations/static/annotations/js/exact-quad-tree.js @@ -150,7 +150,9 @@ class EXACTRegistrationHandler { let x_min = Math.min(...xs), x_max = Math.max(...xs); let y_min = Math.min(...ys), y_max = Math.max(...ys); - this.background_viewer.viewport.setRotation(this.rotation_angle); + if (this.background_viewer.drawer) { + this.background_viewer.viewport.setRotation(this.rotation_angle); + } const vpRect = this.background_viewer.viewport.imageToViewportRectangle( new OpenSeadragon.Rect(x_min, y_min, x_max - x_min, y_max - y_min)