Stefan Schuermans commited on 2013-04-21 14:19:18
Showing 1 changed files, with 2 additions and 2 deletions.
| ... | ... |
@@ -39,8 +39,8 @@ bool Polygons::addLayer(const Layer &layer, double eqDist) |
| 39 | 39 |
CgPolyVec simples; |
| 40 | 40 |
Layer::Paths::const_iterator path; |
| 41 | 41 |
for (path = layer.mPaths.begin(); path != layer.mPaths.end(); ++path) {
|
| 42 |
- // skip empty paths |
|
| 43 |
- if (path->mPoints.empty()) |
|
| 42 |
+ // skip empty paths and paths with just one point |
|
| 43 |
+ if (path->mPoints.size() <= 1) |
|
| 44 | 44 |
continue; |
| 45 | 45 |
// check that path is closed |
| 46 | 46 |
if (!path->mPoints.front().equals(path->mPoints.back(), eqDist)) {
|
| 47 | 47 |