]> git.donarmstrong.com Git - mothur.git/commitdiff
fixed line and label bug.
authorwestcott <westcott>
Wed, 28 Jan 2009 17:28:11 +0000 (17:28 +0000)
committerwestcott <westcott>
Wed, 28 Jan 2009 17:28:11 +0000 (17:28 +0000)
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;
                        }