Fix mistake in idx range in manage
This commit is contained in:
parent
67252fc41d
commit
5fa0b957dd
@ -48,6 +48,9 @@ namespace platform {
|
|||||||
files.push_back(result);
|
files.push_back(result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (max == 0) {
|
||||||
|
max = files.size();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
string Result::to_string() const
|
string Result::to_string() const
|
||||||
{
|
{
|
||||||
@ -164,7 +167,7 @@ namespace platform {
|
|||||||
if (indexList) {
|
if (indexList) {
|
||||||
// The value is about the files list
|
// The value is about the files list
|
||||||
index = idx;
|
index = idx;
|
||||||
if (index >= 0 && index < files.size()) {
|
if (index >= 0 && index < max) {
|
||||||
report(index, false);
|
report(index, false);
|
||||||
indexList = false;
|
indexList = false;
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user