Skip to content

Commit ed5f64d

Browse files
authored
Merge pull request #7811 from gudeh/gui-avoid-qpolygon-pre-filling
gui: avoid pre-filling with (0,0) points
2 parents 622f724 + 3c22d51 commit ed5f64d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gui/src/renderThread.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,7 @@ void RenderThread::drawBlock(QPainter* painter,
11021102
odb::Polygon die_area = block->getDieAreaPolygon();
11031103

11041104
if (die_area.getEnclosingRect().area() > 0) {
1105-
QPolygon die_area_qpoly(die_area.getPoints().size());
1105+
QPolygon die_area_qpoly;
11061106
for (const odb::Point& point : die_area.getPoints()) {
11071107
die_area_qpoly << QPoint(point.getX(), point.getY());
11081108
}

0 commit comments

Comments
 (0)