Skip to content

Commit 767091a

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

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/JSRootPainter.hist.js

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

30333033
THistPainter.prototype.FillPaletteMenu = function(menu) {
30343034

3035-
var curr = this.options.Palette;
3035+
var curr = this.options.Palette, hpainter = this;
30363036
if ((curr===null) || (curr===0)) curr = JSROOT.gStyle.Palette;
30373037

30383038
function change(arg) {
3039-
this.options.Palette = parseInt(arg);
3040-
this.GetPalette(true);
3041-
this.Redraw(); // redraw histogram
3039+
hpainter.options.Palette = parseInt(arg);
3040+
hpainter.GetPalette(true);
3041+
hpainter.Redraw(); // redraw histogram
30423042
};
30433043

30443044
function add(id, name, more) {

0 commit comments

Comments
 (0)