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

Fixed Config::hasStack : it was not working with index 0

parent 4cc25229
No related branches found
No related tags found
No related merge requests found
...@@ -393,7 +393,7 @@ bool Config::hasHistory(int relativeIndex) const ...@@ -393,7 +393,7 @@ bool Config::hasHistory(int relativeIndex) const
bool Config::hasStack(int relativeIndex) const bool Config::hasStack(int relativeIndex) const
{ {
return relativeIndex > 0 && relativeIndex < (int)stack.size(); return relativeIndex >= 0 && relativeIndex < (int)stack.size();
} }
Config::String Config::getState() const Config::String Config::getState() const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment