diff --git a/modules/hist/TPavePainter.mjs b/modules/hist/TPavePainter.mjs index 8ea52507f..e1189821f 100644 --- a/modules/hist/TPavePainter.mjs +++ b/modules/hist/TPavePainter.mjs @@ -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); @@ -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); }