Skip to content

Commit a0d4fed

Browse files
committed
Fix - allow th2 hist option to change palette
While hist for th2 equivalent to the color
1 parent 00447a5 commit a0d4fed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/hist2d/TH2Painter.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ class TH2Painter extends THistPainter {
750750
this.interactiveRedraw('pad', 'drawopt');
751751
});
752752

753-
if (this.options.Color || this.options.Contour || this.options.Surf || this.options.Lego === 12 || this.options.Lego === 14)
753+
if (this.options.Color || this.options.Contour || this.options.Hist || this.options.Surf || this.options.Lego === 12 || this.options.Lego === 14)
754754
this.fillPaletteMenu(menu, true);
755755
}
756756

modules/hist2d/THistPainter.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class THistDrawOptions {
7171
if (this.Mode3D)
7272
return this.Lego === 12 || this.Lego === 14 || this.Surf === 11 || this.Surf === 12;
7373

74-
if (this.Color || this.Contour || this.Axis)
74+
if (this.Color || this.Contour || this.Hist || this.Axis)
7575
return true;
7676

7777
return !this.Scat && !this.Box && !this.Arrow && !this.Proj && !this.Candle && !this.Violin && !this.Text;

0 commit comments

Comments
 (0)