diff --git a/src/map/oruxmap.cpp b/src/map/oruxmap.cpp index 916f1159..9c589ab1 100644 --- a/src/map/oruxmap.cpp +++ b/src/map/oruxmap.cpp @@ -251,8 +251,7 @@ void OruxMap::mapCalibration(QXmlStreamReader &reader, const QString &dir, { int zoom; QSize tileSize, size, calibrationSize; - QString datum, projection, fileName; - QList points; + QString fileName; Projection proj; Transform t; @@ -269,6 +268,7 @@ void OruxMap::mapCalibration(QXmlStreamReader &reader, const QString &dir, _name = name; } else if (reader.name() == QLatin1String("MapChunks")) { int xMax, yMax, width, height; + QString datum, projection; QXmlStreamAttributes attr = reader.attributes(); if (!intAttr(reader, attr, "xMax", xMax)) @@ -318,6 +318,8 @@ void OruxMap::mapCalibration(QXmlStreamReader &reader, const QString &dir, reader.readElementText(); } else if (reader.name() == QLatin1String("CalibrationPoints")) { + QList points; + calibrationPoints(reader, calibrationSize, points); t = computeTransformation(proj, points);