Permalink
Browse files

Merge pull request #2 from tchklovski/master

fix for input reading bug
  • Loading branch information...
2 parents b7685df + 59b633d commit c238446c0b45307cdeb2972a526a9d23263571f3 Aaron Straup Cope committed Mar 19, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 clustr.cpp
View
@@ -219,10 +219,11 @@ int main(int argc, char **argv) {
previous = tag;
}
if (tag != previous) {
- construct_output(config, *shape, pts, tag);
+ construct_output(config, *shape, pts, previous);
pts.clear();
+ previous = tag;
}
- pts.push_back(pt);
+ pts.push_back(pt);
}
construct_output(config, *shape, pts, tag);

0 comments on commit c238446

Please sign in to comment.