From: westcott Date: Wed, 28 Jan 2009 17:28:11 +0000 (+0000) Subject: fixed line and label bug. X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=e765c82f82cf749825b4e577636553afb66d0dc8;p=mothur.git fixed line and label bug. --- diff --git a/globaldata.cpp b/globaldata.cpp index 5f96011..f706b53 100644 --- a/globaldata.cpp +++ b/globaldata.cpp @@ -148,12 +148,14 @@ void GlobalData::parseGlobalData(string commandString, string optionText){ if (key == "line") {//stores lines to be used in a vector lines.clear(); line = value; + label = ""; splitAtDash(value, lines); allLines = 0; } if (key == "label") {//stores lines to be used in a vector labels.clear(); label = value; + line = ""; splitAtDash(value, labels); allLines = 0; } @@ -214,12 +216,14 @@ void GlobalData::parseGlobalData(string commandString, string optionText){ if (key == "line") {//stores lines to be used in a vector lines.clear(); line = value; + label = ""; splitAtDash(value, lines); allLines = 0; } if (key == "label") {//stores lines to be used in a vector labels.clear(); label = value; + line = ""; splitAtDash(value, labels); allLines = 0; }