Skip to content

Commit 3c22d51

Browse files
committed
gui: avoid pre-filling with (0,0) points
Signed-off-by: Augusto Berndt <augusto.berndt@precisioninno.com>
1 parent c04b952 commit 3c22d51

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)