Skip to content

Commit 7472c50

Browse files
committed
Ignore active pad action without real snap id
Static snapshots will be generated without object ids For such snapshots active pad will be ignored
1 parent e57133e commit 7472c50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/gpad/TCanvasPainter.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ class TCanvasPainter extends TPadPainter {
619619

620620
/** @summary Select active pad on the canvas */
621621
selectActivePad(pad_painter, obj_painter, click_pos) {
622-
if ((this.snapid === undefined) || !pad_painter) return; // only interactive canvas
622+
if (!this.snapid || !pad_painter) return; // only interactive canvas
623623

624624
let arg = null, ischanged = false;
625625

0 commit comments

Comments
 (0)