summaryrefslogtreecommitdiff
path: root/src/dxfdata.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2012-02-14 00:33:44 (GMT)
committerMarius Kintel <marius@kintel.net>2012-02-14 00:33:44 (GMT)
commitf61c9c9fbc1394f530e8166837ff8d69bf8e2561 (patch)
tree1de21c7d0ca5efa6c1af76b94c0c5e95b42233b9 /src/dxfdata.cc
parenta83fda0c3d9e92a6e47622cd1c2fdeebdfbb8c1a (diff)
parentd4efb54284f0781aee40cb660712fa15256676df (diff)
Merge branch 'master' of https://github.com/clothbot/openscad into clothbot-master
Conflicts: scripts/macosx-build-dependencies.sh
Diffstat (limited to 'src/dxfdata.cc')
-rw-r--r--src/dxfdata.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dxfdata.cc b/src/dxfdata.cc
index 52493ac..65996d9 100644
--- a/src/dxfdata.cc
+++ b/src/dxfdata.cc
@@ -526,9 +526,9 @@ void DxfData::fixup_path_direction()
}
}
// rotate points if the path is in non-standard rotation
- int b = min_x_point;
- int a = b == 0 ? this->paths[i].indices.size() - 2 : b - 1;
- int c = b == this->paths[i].indices.size() - 1 ? 1 : b + 1;
+ unsigned int b = min_x_point;
+ unsigned int a = b == 0 ? this->paths[i].indices.size() - 2 : b - 1;
+ unsigned int c = b == this->paths[i].indices.size() - 1 ? 1 : b + 1;
double ax = this->points[this->paths[i].indices[a]][0] - this->points[this->paths[i].indices[b]][0];
double ay = this->points[this->paths[i].indices[a]][1] - this->points[this->paths[i].indices[b]][1];
double cx = this->points[this->paths[i].indices[c]][0] - this->points[this->paths[i].indices[b]][0];
contact: Jan Huwald // Impressum