Skip to content
Snippets Groups Projects
Commit 8c44e831 authored by Franck Dary's avatar Franck Dary
Browse files

Fixed Config::printForDebug : if a stack element is out of bound, print ? instead

parent fe3724d0
No related branches found
No related tags found
No related merge requests found
...@@ -136,7 +136,12 @@ void Config::printForDebug(FILE * dest) const ...@@ -136,7 +136,12 @@ void Config::printForDebug(FILE * dest) const
for (auto & s : stack) for (auto & s : stack)
{ {
if (hasColIndex(idColName)) if (hasColIndex(idColName))
stackStr += getLastNotEmptyConst(idColName, s); {
if (has(idColName, s, 0))
stackStr += getLastNotEmptyConst(idColName, s);
else
stackStr += "?";
}
else else
stackStr += std::to_string(s); stackStr += std::to_string(s);
stackStr += ","; stackStr += ",";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment