From a89ecad01d7ce58fd2e98a15090e8500dde69625 Mon Sep 17 00:00:00 2001 From: luca Date: Thu, 19 May 2005 16:53:37 +0000 Subject: [PATCH] Corrected bug that prevented parsing of one_string expressions when there was no space between delimiter and next expression. git-svn-id: https://svn.dealii.org/trunk@10691 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/source/function_parser.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deal.II/base/source/function_parser.cc b/deal.II/base/source/function_parser.cc index e2e70a9127..3852cd0f2c 100644 --- a/deal.II/base/source/function_parser.cc +++ b/deal.II/base/source/function_parser.cc @@ -45,7 +45,7 @@ unsigned int SplitString(const std::string& input, Assert(iPos <= input.size(), ExcInternalError()); results.push_back(input.substr(iPos, newPos-iPos)); // Update the current position with the correct offset. - iPos = newPos+sizeS2+1; + iPos = newPos+sizeS2; } // At least we found one string and no delimiters. Assert(numFound > 0, ExcInternalError()); -- 2.39.5