Skip to content

Commit ce4cee4

Browse files
committed
Fix v7 - select palette from colz element
1 parent 767091a commit ce4cee4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/JSRootPainter.v7hist.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -622,13 +622,13 @@
622622

623623
THistPainter.prototype.FillPaletteMenu = function(menu) {
624624

625-
var curr = this.options.Palette;
625+
var curr = this.options.Palette, hpainter = this;
626626
if ((curr===null) || (curr===0)) curr = JSROOT.gStyle.Palette;
627627

628628
function change(arg) {
629-
this.options.Palette = parseInt(arg);
630-
this.GetPalette(true);
631-
this.Redraw(); // redraw histogram
629+
hpainter.options.Palette = parseInt(arg);
630+
hpainter.GetPalette(true);
631+
hpainter.Redraw(); // redraw histogram
632632
};
633633

634634
function add(id, name, more) {

0 commit comments

Comments
 (0)