]> git.donarmstrong.com Git - mothur.git/blobdiff - bootstrapsharedcommand.cpp
added hcluster command and fixed some bugs, namely one with smart distancing.
[mothur.git] / bootstrapsharedcommand.cpp
index 0f758c15a0eafc98d620d2fb37980be6f221a767..1b682c78e3471fe7b4fef8528e8d74243374cd21 100644 (file)
@@ -224,6 +224,7 @@ int BootSharedCommand::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->getSharedOrderVector(lastLabel);                                                                                                 
@@ -232,6 +233,9 @@ int BootSharedCommand::execute(){
 
                                processedLabels.insert(order->getLabel());
                                userLabels.erase(order->getLabel());
+                               
+                               //restore real lastlabel to save below
+                               order->setLabel(saveLabel);
                        }