From 01c69a4cf70db827f4ff4e9049631e6d296672e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Capello?= Date: Mon, 4 Dec 2023 10:08:07 -0300 Subject: [PATCH] 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. --- src/app/crash/read_document.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/crash/read_document.cpp b/src/app/crash/read_document.cpp index 00128e93e..ec2ce2d4b 100644 --- a/src/app/crash/read_document.cpp +++ b/src/app/crash/read_document.cpp @@ -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.