Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix bug on how input is read -- was failing to correctly read past fi…

…rst cluster; was assigning incorrect tag to cluster
  • Loading branch information...
commit 59b633df766f5cc5c15f303cf02c7c811b25e915 1 parent b7685df
@tchklovski tchklovski authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 clustr.cpp
View
5 clustr.cpp
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.