Skip to content

Commit 1a65feb

Browse files
committed
Fix - toggle vertical palette via menu
1 parent afa5059 commit 1a65feb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/hist2d/THistPainter.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2206,8 +2206,8 @@ class THistPainter extends ObjectPainter {
22062206

22072207
// place colz in the beginning, that stat box is always drawn on the top
22082208
this.addFunction(pal, true);
2209-
} else if (pal_painter?._palette_vertical !== undefined)
2210-
this.options.Zvert = pal_painter._palette_vertical;
2209+
} else if ((pal_painter?.isPaletteVertical() !== undefined) && (can_move !== 'toggle'))
2210+
o.Zvert = pal_painter.isPaletteVertical();
22112211

22122212
const fp = this.getFramePainter();
22132213

0 commit comments

Comments
 (0)