Skip to content

Commit 23ded0d

Browse files
committed
Use getColor from hist painter
1 parent bea91ec commit 23ded0d

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
@@ -1,7 +1,7 @@
11
import { gStyle, BIT, settings, constants, create, isObject, isFunc, isStr, getPromise,
22
clTList, clTPaveText, clTPaveStats, clTPaletteAxis, clTProfile, clTProfile2D, clTProfile3D, clTPad,
33
clTAxis, clTF1, clTF2, kNoZoom, clTCutG, kNoStats, kTitle, setHistogramTitle } from '../core.mjs';
4-
import { getColor, getColorPalette } from '../base/colors.mjs';
4+
import { getColorPalette } from '../base/colors.mjs';
55
import { DrawOptions } from '../base/BasePainter.mjs';
66
import { ObjectPainter, EAxisBits, kAxisTime, kAxisLabels } from '../base/ObjectPainter.mjs';
77
import { TPavePainter, kPosTitle } from '../hist/TPavePainter.mjs';
@@ -228,7 +228,7 @@ class THistDrawOptions {
228228
}
229229

230230
if (d.check('LINE_', 'color'))
231-
this.histoLineColor = getColor(d.color);
231+
this.histoLineColor = painter.getColor(d.color);
232232

233233
if (d.check('WIDTH_', true))
234234
this.histoLineWidth = d.partAsInt();

0 commit comments

Comments
 (0)