Merge pull request #3200 from martinvanzijl/issue-2945-allow-load-levels-with-numeric-name
Allow loading levels/images with numeric names
This commit is contained in:
commit
83e2a21487
1 changed files with 2 additions and 1 deletions
|
@ -622,7 +622,8 @@ std::wstring TFilePath::getLevelNameW() const {
|
||||||
if (j == i || j - i == 1) // prova.tif o prova..tif
|
if (j == i || j - i == 1) // prova.tif o prova..tif
|
||||||
return str;
|
return str;
|
||||||
|
|
||||||
if (!checkForSeqNum(type) || !isNumbers(str, i, j)) return str;
|
if (!checkForSeqNum(type) || !isNumbers(str, i, j) ||
|
||||||
|
i == (int)std::wstring::npos) return str;
|
||||||
// prova.0001.tif
|
// prova.0001.tif
|
||||||
return str.erase(i + 1, j - i - 1);
|
return str.erase(i + 1, j - i - 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue