Skip to content
Snippets Groups Projects
Commit 9ff9a41b authored by mattijs's avatar mattijs
Browse files

BUG: inplaceExpand: update index after replacement

parent 5d1cdef5
Branches
Tags
No related merge requests found
......@@ -398,6 +398,8 @@ Foam::string& Foam::stringOps::inplaceExpand
begVar - stringStart + 1,
varValue
);
begVar = stringStart+varValue.size();
}
else
{
......@@ -744,8 +746,7 @@ Foam::string& Foam::stringOps::inplaceExpand
FatalErrorIn
(
"stringOps::inplaceExpand(string&, const bool)"
)
<< "Unknown variable name '" << varName << "'"
) << "Unknown variable name '" << varName << "'"
<< exit(FatalError);
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment