From a2aaf0ccff5492b37307502c2421dd72e392655a Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 27 Mar 2016 19:35:55 +0300 Subject: [PATCH] GCC warnings. --HG-- branch : develop --- src/libs/vdxf/vdxfengine.cpp | 10 +++++----- src/libs/vwidgets/vcontrolpointspline.cpp | 2 -- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/libs/vdxf/vdxfengine.cpp b/src/libs/vdxf/vdxfengine.cpp index 7d32c7792..91429ecaf 100644 --- a/src/libs/vdxf/vdxfengine.cpp +++ b/src/libs/vdxf/vdxfengine.cpp @@ -264,8 +264,8 @@ void VDxfEngine::drawPath(const QPainterPath &path) for (int i=0; i < polygon.count(); ++i) { - dxf->writeVertex(*dw, - DL_VertexData(FromPixel(polygon.at(i).x(), varInsunits), + dxf->writeVertex(*dw, + DL_VertexData(FromPixel(polygon.at(i).x(), varInsunits), 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) { const QPointF p = matrix.map(points[i]); - dxf->writeVertex(*dw, - DL_VertexData(FromPixel(p.x(), varInsunits), + dxf->writeVertex(*dw, + DL_VertexData(FromPixel(p.x(), varInsunits), FromPixel(getSize().height() - p.y(), varInsunits), 0, 0)); } @@ -361,7 +361,7 @@ void VDxfEngine::drawEllipse(const QRectF & rect) FromPixel(majorX, varInsunits), FromPixel(majorY, varInsunits), FromPixel(0, varInsunits), - FromPixel(majorY, varInsunits), + FromPixel(ratio, varInsunits), 0, 6.28 // startangle and endangle of ellipse in rad ), DL_Attributes("0", getPenColor(), -1, getPenStyle(), 1.0)); diff --git a/src/libs/vwidgets/vcontrolpointspline.cpp b/src/libs/vwidgets/vcontrolpointspline.cpp index 373a05a26..c6edb340b 100644 --- a/src/libs/vwidgets/vcontrolpointspline.cpp +++ b/src/libs/vwidgets/vcontrolpointspline.cpp @@ -157,8 +157,6 @@ QVariant VControlPointSpline::itemChange(QGraphicsItem::GraphicsItemChange chang if (not freeLength) { - qreal length = controlLine->line().length(); - qreal l2 = oldLine.length(); newLine.setLength(oldLine.length()); }