From 99bb3f8962a5f7ebddde61b1bd48622552045d90 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 31 Mar 2015 14:14:08 +0300 Subject: [PATCH] Fixed issue #267. Error in the creation of obj files. --HG-- branch : develop --- src/libs/vobj/vobjengine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/vobj/vobjengine.cpp b/src/libs/vobj/vobjengine.cpp index 0545aadbd..05229910f 100644 --- a/src/libs/vobj/vobjengine.cpp +++ b/src/libs/vobj/vobjengine.cpp @@ -210,11 +210,12 @@ void VObjEngine::drawPolygon(const QPointF *points, int pointCount, PolygonDrawM for (int i = 0; i < pointCount; ++i) { - *stream << QString(" %1").arg(globalPointsCount - static_cast(pointCount + i + 1)); + *stream << QString(" %1").arg(globalPointsCount - static_cast(pointCount) + i + 1); } *stream << endl; } +//--------------------------------------------------------------------------------------------------------------------- void VObjEngine::drawPolygon(const QPoint *points, int pointCount, QPaintEngine::PolygonDrawMode mode) { QPaintEngine::drawPolygon(points, pointCount, mode);