From ca7697733c8e27fa4a5b78f7752d89d2ba7decbe Mon Sep 17 00:00:00 2001 From: Sergey Linev Date: Fri, 21 Jun 2024 09:44:31 +0200 Subject: [PATCH] Do not set current pad when drawing TWebCanvas --- modules/gpad/TPadPainter.mjs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/modules/gpad/TPadPainter.mjs b/modules/gpad/TPadPainter.mjs index 7b04eaf1b..44bd8cc12 100644 --- a/modules/gpad/TPadPainter.mjs +++ b/modules/gpad/TPadPainter.mjs @@ -1718,10 +1718,8 @@ class TPadPainter extends ObjectPainter { padpainter.addPadButtons(true); // we select current pad, where all drawing is performed - const prev_name = padpainter.selectCurrentPad(padpainter.this_pad_name); return padpainter.drawNextSnap(snap.fPrimitives).then(() => { padpainter.addPadInteractive(); - padpainter.selectCurrentPad(prev_name); return this.drawNextSnap(lst, indx); // call next }); } @@ -1916,11 +1914,8 @@ class TPadPainter extends ObjectPainter { this.addPadButtons(true); } - const prev_name = this.selectCurrentPad(this.this_pad_name); - return this.drawNextSnap(snap.fPrimitives).then(() => { this.addPadInteractive(); - this.selectCurrentPad(prev_name); if (getActivePad() === this) this.getCanvPainter()?.producePadEvent('padredraw', this); return this;