]> git.donarmstrong.com Git - mothur.git/blobdiff - getlistcountcommand.cpp
added hcluster command and fixed some bugs, namely one with smart distancing.
[mothur.git] / getlistcountcommand.cpp
index f14e17a951eec96494dd36a87d259f6117cc758c..94437fddfa766efe0bf25233914fe59befd9f204 100644 (file)
@@ -120,6 +120,8 @@ int GetListCountCommand::execute(){
                        }
                        
                        if ((anyLabelsToProcess(list->getLabel(), userLabels, "") == true) && (processedLabels.count(lastLabel) != 1)) {
+                               string saveLabel = list->getLabel();
+                               
                                delete list;
                                list = input->getListVector(lastLabel);
                                
@@ -127,6 +129,9 @@ int GetListCountCommand::execute(){
                                                                                                        
                                processedLabels.insert(list->getLabel());
                                userLabels.erase(list->getLabel());
+                               
+                               //restore real lastlabel to save below
+                               list->setLabel(saveLabel);
                        }
                        
                        lastLabel = list->getLabel();