X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=getrabundcommand.cpp;h=2ed5b7be71e13b5369f4cc71aaab72258960d41f;hb=72ebb6fa35b45b149812d47c2b1cb8acaca64659;hp=04b1b0badcf7dfc009296ac145aa49da50a3de50;hpb=f37a59b81c339f574d97042ff6e364146feb457a;p=mothur.git diff --git a/getrabundcommand.cpp b/getrabundcommand.cpp index 04b1b0b..2ed5b7b 100644 --- a/getrabundcommand.cpp +++ b/getrabundcommand.cpp @@ -133,6 +133,8 @@ int GetRAbundCommand::execute(){ } if ((anyLabelsToProcess(list->getLabel(), userLabels, "") == true) && (processedLabels.count(lastLabel) != 1)) { + string saveLabel = list->getLabel(); + delete list; list = input->getListVector(lastLabel); @@ -147,6 +149,9 @@ int GetRAbundCommand::execute(){ processedLabels.insert(list->getLabel()); userLabels.erase(list->getLabel()); + + //restore real lastlabel to save below + list->setLabel(saveLabel); } lastLabel = list->getLabel();