Skip to content

Commit

Permalink
Fix - legend entry with not configured fill
Browse files Browse the repository at this point in the history
  • Loading branch information
linev committed Jun 6, 2024
1 parent 37925e8 commit ddbadd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/hist/TPavePainter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -703,11 +703,9 @@ class TPavePainter extends ObjectPainter {
if ('fLineColor' in mo) o_line = mo;
if ('fFillColor' in mo) o_fill = mo;
if ('fMarkerColor' in mo) o_marker = mo;

painter = pp.findPainterFor(mo);
}


// Draw fill pattern (in a box)
if (draw_fill) {
const fillatt = painter?.fillatt?.used ? painter.fillatt : this.createAttFill(o_fill);
Expand All @@ -725,6 +723,8 @@ class TPavePainter extends ObjectPainter {
.attr('d', `M${x0 + padding_x},${Math.round(pos_y+step_y*0.1)}v${Math.round(step_y*0.8)}h${tpos_x-2*padding_x-x0}v${-Math.round(step_y*0.8)}z`);
if (!fillatt.empty())
rect.call(fillatt.func);
else
rect.style('fill', 'none');
if (lineatt)
rect.call(lineatt.func);
}
Expand Down

0 comments on commit ddbadd2

Please sign in to comment.