mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
reserve space for bounds in QPainterPath::toFillPolygons()
upstream commit:
d432d17f83
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
363b2e01d7
commit
7a50d771fc
1 changed files with 1 additions and 0 deletions
|
@ -1595,6 +1595,7 @@ QList<QPolygonF> QPainterPath::toFillPolygons(const QTransform &matrix) const
|
|||
return polys;
|
||||
|
||||
QList<QRectF> bounds;
|
||||
bounds.reserve(count);
|
||||
for (int i=0; i<count; ++i)
|
||||
bounds += subpaths.at(i).boundingRect();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue