]> git.donarmstrong.com Git - mothur.git/blobdiff - collectcommand.cpp
added hcluster command and fixed some bugs, namely one with smart distancing.
[mothur.git] / collectcommand.cpp
index 7d3daef96cccf6d7b1604728fd1eaff9f2b78048..ea2d558544514e7f35e291033c23e20aca930a6a 100644 (file)
@@ -221,6 +221,7 @@ int CollectCommand::execute(){
                        }
                        //you have a label the user want that is smaller than this label and the last label has not already been processed 
                        if ((anyLabelsToProcess(order->getLabel(), userLabels, "") == true) && (processedLabels.count(lastLabel) != 1)) {
+                               string saveLabel = order->getLabel();
                                
                                delete order;
                                order = (input->getOrderVector(lastLabel));
@@ -232,6 +233,9 @@ int CollectCommand::execute(){
                                mothurOut(order->getLabel()); mothurOutEndLine();
                                processedLabels.insert(order->getLabel());
                                userLabels.erase(order->getLabel());
+                               
+                               //restore real lastlabel to save below
+                               order->setLabel(saveLabel);
                        }
                        
                        lastLabel = order->getLabel();