Skip to content

Commit

Permalink
Do not set current pad when drawing TWebCanvas
Browse files Browse the repository at this point in the history
  • Loading branch information
linev committed Jun 21, 2024
1 parent 15a28fb commit ca76977
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions modules/gpad/TPadPainter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
}
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit ca76977

Please sign in to comment.