X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=globaldata.cpp;h=2848860d41c35db65029a26409b8b9d3f5201685;hb=29351fe29c017d2225366418973ed0e000ce5293;hp=cc102a57487e725525688d82d8f32c5de5cec4ce;hpb=dd7e72614c024b1fb547ff9ea9451a89baeb3e7b;p=mothur.git diff --git a/globaldata.cpp b/globaldata.cpp index cc102a5..2848860 100644 --- a/globaldata.cpp +++ b/globaldata.cpp @@ -79,6 +79,7 @@ void GlobalData::parseGlobalData(string commandString, string optionText){ if (key == "line") {//stores lines to be used in a set lines.clear(); + labels.clear(); line = value; label = ""; splitAtDash(value, lines); @@ -86,6 +87,7 @@ void GlobalData::parseGlobalData(string commandString, string optionText){ } if (key == "label") {//stores labels to be used in a set labels.clear(); + lines.clear(); label = value; line = ""; splitAtDash(value, labels); @@ -129,6 +131,7 @@ void GlobalData::parseGlobalData(string commandString, string optionText){ if (key == "line") {//stores lines to be used in a vector lines.clear(); + labels.clear(); line = value; label = ""; if (line != "all") { splitAtDash(value, lines); allLines = 0; } @@ -136,6 +139,7 @@ void GlobalData::parseGlobalData(string commandString, string optionText){ } if (key == "label") {//stores lines to be used in a vector labels.clear(); + lines.clear(); label = value; line = ""; if (label != "all") { splitAtDash(value, labels); allLines = 0; }