diff options
Diffstat (limited to 'model.cpp')
-rw-r--r-- | model.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -41,7 +41,7 @@ Model::Model(const QString &filePath) ts >> vertex; const int vertexIndex = vertex.split('/').value(0).toInt(); if (vertexIndex) - p.append(vertexIndex - 1); + p.append(vertexIndex > 0 ? vertexIndex - 1 : m_points.size() + vertexIndex); } for (int i = 0; i < p.size(); ++i) { |