Fix recovering of old crashed sessions having sprites containing slices

Without this fix a recovering thread could get stuck in an infinite loop when reading the slices of a sprite created with a doc format version lesser than 2.
This commit is contained in:
Martín Capello 2023-12-04 10:08:07 -03:00 committed by David Capello
parent 046b68061a
commit 01c69a4cf7

View File

@ -521,7 +521,7 @@ private:
}
Slice* readSlice(std::ifstream& s) {
return read_slice(s, false);
return read_slice(s, false, m_docFormatVer);
}
// Fix issues that the restoration process could produce.