From ddbadd22b544645a3a8bc1fc4ab1a7c62d3715ef Mon Sep 17 00:00:00 2001 From: Sergey Linev Date: Thu, 6 Jun 2024 14:00:14 +0200 Subject: [PATCH] Fix - legend entry with not configured fill --- modules/hist/TPavePainter.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }