OpenToonz - An open-source full-featured 2D animation creation software
C
#assistants: fix parsing frame with zero number
Ivan Mahonin615153d3a350
diff --git a/toonz/sources/common/tsystem/tfilepath.cpp b/toonz/sources/common/tsystem/tfilepath.cppindex f4a5beb4b..3103efbc0 100644--- a/toonz/sources/common/tsystem/tfilepath.cpp+++ b/toonz/sources/common/tsystem/tfilepath.cpp@@ -98,7 +98,7 @@ bool parseFrame(const std::wstring &str, int &frame, QString &letter, int &paddiwchar_t l = str[i] >= L'a' && str[i] <= L'z' ? str[i++]: str[i] >= L'A' && str[i] <= L'Z' ? str[i++]: L'\0';- if (number == 0 || i < (int)str.size())+ if (digits <= 0 || i < (int)str.size())return false;frame = number;