GCC warnings.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-03-27 19:35:55 +03:00
parent c4ca41aa83
commit a2aaf0ccff
2 changed files with 5 additions and 7 deletions

View File

@ -264,8 +264,8 @@ void VDxfEngine::drawPath(const QPainterPath &path)
for (int i=0; i < polygon.count(); ++i) for (int i=0; i < polygon.count(); ++i)
{ {
dxf->writeVertex(*dw, dxf->writeVertex(*dw,
DL_VertexData(FromPixel(polygon.at(i).x(), varInsunits), DL_VertexData(FromPixel(polygon.at(i).x(), varInsunits),
FromPixel(getSize().height() - polygon.at(i).y(), varInsunits), 0, 0)); FromPixel(getSize().height() - polygon.at(i).y(), varInsunits), 0, 0));
} }
@ -315,8 +315,8 @@ void VDxfEngine::drawPolygon(const QPointF *points, int pointCount, PolygonDrawM
for (int i = 0; i < pointCount; ++i) for (int i = 0; i < pointCount; ++i)
{ {
const QPointF p = matrix.map(points[i]); const QPointF p = matrix.map(points[i]);
dxf->writeVertex(*dw, dxf->writeVertex(*dw,
DL_VertexData(FromPixel(p.x(), varInsunits), DL_VertexData(FromPixel(p.x(), varInsunits),
FromPixel(getSize().height() - p.y(), varInsunits), 0, 0)); FromPixel(getSize().height() - p.y(), varInsunits), 0, 0));
} }
@ -361,7 +361,7 @@ void VDxfEngine::drawEllipse(const QRectF & rect)
FromPixel(majorX, varInsunits), FromPixel(majorX, varInsunits),
FromPixel(majorY, varInsunits), FromPixel(majorY, varInsunits),
FromPixel(0, varInsunits), FromPixel(0, varInsunits),
FromPixel(majorY, varInsunits), FromPixel(ratio, varInsunits),
0, 6.28 // startangle and endangle of ellipse in rad 0, 6.28 // startangle and endangle of ellipse in rad
), ),
DL_Attributes("0", getPenColor(), -1, getPenStyle(), 1.0)); DL_Attributes("0", getPenColor(), -1, getPenStyle(), 1.0));

View File

@ -157,8 +157,6 @@ QVariant VControlPointSpline::itemChange(QGraphicsItem::GraphicsItemChange chang
if (not freeLength) if (not freeLength)
{ {
qreal length = controlLine->line().length();
qreal l2 = oldLine.length();
newLine.setLength(oldLine.length()); newLine.setLength(oldLine.length());
} }