]> git.donarmstrong.com Git - mothur.git/blobdiff - getsabundcommand.cpp
added hcluster command and fixed some bugs, namely one with smart distancing.
[mothur.git] / getsabundcommand.cpp
index 80a44297b48bfde50c633edfe7354e2f3e0cb115..3dd58c117945a299154ebd09cc60b0688ea9f714 100644 (file)
@@ -123,6 +123,8 @@ int GetSAbundCommand::execute(){
                        }
                        
                        if ((anyLabelsToProcess(order->getLabel(), userLabels, "") == true) && (processedLabels.count(lastLabel) != 1)) {
+                                       string saveLabel = order->getLabel();
+                                       
                                        delete order;           
                                        order = (input->getOrderVector(lastLabel));
                                        
@@ -134,6 +136,9 @@ int GetSAbundCommand::execute(){
 
                                        processedLabels.insert(order->getLabel());
                                        userLabels.erase(order->getLabel());
+                                       
+                                       //restore real lastlabel to save below
+                                       order->setLabel(saveLabel);
                        }