From e765c82f82cf749825b4e577636553afb66d0dc8 Mon Sep 17 00:00:00 2001 From: westcott Date: Wed, 28 Jan 2009 17:28:11 +0000 Subject: [PATCH] fixed line and label bug. --- globaldata.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.39.2