]> git.donarmstrong.com Git - mothur.git/blobdiff - globaldata.cpp
fixed line and label bug.
[mothur.git] / globaldata.cpp
index 5f96011291b0266902d103a14d98a13a9da1e616..f706b5308765cc01db2196c92192f22fb1f86302 100644 (file)
@@ -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;
                        }