We don't need variable points in method Square

--HG--
branch : feature
This commit is contained in:
Valentina Zhuravska 2015-11-22 16:47:50 +02:00
parent 6c653163f9
commit 3e9793dbbb
2 changed files with 2 additions and 3 deletions

View File

@ -288,8 +288,7 @@ qint64 VLayoutDetail::Square() const
return 0;
}
const QVector<QPointF> points = d->layoutAllowence;
const qreal res = SumTrapezoids(points);
const qreal res = SumTrapezoids(d->layoutAllowence);
const qint64 sq = qFloor(qAbs(res/2.0));
return sq;

View File

@ -463,7 +463,7 @@ bool DialogDetail::DetailIsValid() const
QByteArray byteArray;
QBuffer buffer(&byteArray);
pixmap.save(&buffer, "PNG");
QString url = QString("<img src=\"data:image/png;base64,") + byteArray.toBase64() + "\"/> ";
QString url = QString("<img src=\"data:image/png;base64,") + byteArray.toBase64() + QLatin1Literal("\"/> ");
if (ui.listWidget->count() < 3)
{