From cea8ab44a8c74f1fcf7ea42f1bb237ae42a9a6dd Mon Sep 17 00:00:00 2001 From: Scott R Charlton Date: Thu, 2 Feb 2012 01:29:19 +0000 Subject: [PATCH] fixed bug in GetSelectedOutputString (bad args); cleared SelectedOutputString for each run git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/branches/ErrorHandling@6156 1feff8c3-07ed-0310-ac33-dd36852eb9cd --- src/IPhreeqc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/IPhreeqc.cpp b/src/IPhreeqc.cpp index ce7f9e32..e6f83cd5 100644 --- a/src/IPhreeqc.cpp +++ b/src/IPhreeqc.cpp @@ -858,6 +858,8 @@ void IPhreeqc::do_run(const char* sz_routine, std::istream* pis, PFN_PRERUN_CALL this->LogLines.clear(); this->OutputString.clear(); this->OutputLines.clear(); + this->SelectedOutputString.clear(); + this->SelectedOutputLines.clear(); /* * set read callback @@ -888,9 +890,6 @@ void IPhreeqc::do_run(const char* sz_routine, std::istream* pis, PFN_PRERUN_CALL int save_punch_in = this->PhreeqcPtr->punch.in; - //{{ - //}} - this->PhreeqcPtr->dup_print(token, TRUE); if (this->PhreeqcPtr->read_input() == EOF) break; @@ -1077,6 +1076,7 @@ void IPhreeqc::do_run(const char* sz_routine, std::istream* pis, PFN_PRERUN_CALL if (this->DumpOn) { this->PhreeqcPtr->dump_entities(); + this->DumpFileName = this->PhreeqcPtr->dump_info.Get_file_name(); } if (this->DumpStringOn) {