Skip to content

Commit

Permalink
remove redundant setRect() call
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnj007 committed Nov 16, 2022
2 parents 293e41e + 18bc530 commit a2aeaf1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/qtgui/plotter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1380,7 +1380,7 @@ void CPlotter::drawOverlay()
int bandLevel = 0;
qint64 last_max = 0;
qint64 last_max_0 = 0;

std::sort(bands.begin(), bands.end());

for (auto & band : bands)
Expand Down Expand Up @@ -1409,7 +1409,6 @@ void CPlotter::drawOverlay()
if (band_left < w && band_width > textWidth + 20)
{
painter.setOpacity(1.0);
rect.setRect(band_left, xAxisTop - m_BandPlanHeight + band_bottom, band_width, m_BandPlanHeight);
painter.setPen(QColor(PLOTTER_TEXT_COLOR));
painter.drawText(rect, Qt::AlignCenter, band_label);
}
Expand Down

0 comments on commit a2aeaf1

Please sign in to comment.