Skip to content

Commit

Permalink
It is useful to have a line of only one vertex
Browse files Browse the repository at this point in the history
  • Loading branch information
alriddoch committed Mar 25, 2012
1 parent 7f35fbe commit c109911
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wfmath/atlasconv.h
Expand Up @@ -374,13 +374,13 @@ inline void Line<dim>::fromAtlas(const AtlasInType& a)
Atlas::Message::MapType::const_iterator it = shapeElement.find("points");
if ((it != shapeElement.end()) && it->second.isList()) {
_CornersFromAtlas(*this, it->second);
if (numCorners() > 1) {
if (numCorners() > 0) {
return;
}
}
} else if (message.isList()) {
_CornersFromAtlas(*this, message);
if (numCorners() > 1) {
if (numCorners() > 0) {
return;
}
}
Expand Down

0 comments on commit c109911

Please sign in to comment.