Fix layout internal path support of pen style.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-05-16 15:19:27 +03:00
parent 56dd8ef3b6
commit 91a75f6f01

View File

@ -72,11 +72,7 @@ QPainterPath VLayoutPiecePath::GetPainterPath() const
QPainterPath path;
if (not d->m_points.isEmpty())
{
path.moveTo(d->m_points.at(0));
for (qint32 j = 1; j < d->m_points.count(); ++j)
{
path.lineTo(d->m_points.at(j));
}
path.addPolygon(QPolygonF(d->m_points));
path.setFillRule(Qt::WindingFill);
}
return path;