From a33743cff210fc71eb4024940c5069443dc2c3e9 Mon Sep 17 00:00:00 2001 From: Viktor Andreev Date: Tue, 4 Feb 2025 13:44:41 +0600 Subject: [PATCH] fix bug #73052 --- .../XlsFile/Format/Logic/Biff_structures/PtgExtraArray.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MsBinaryFile/XlsFile/Format/Logic/Biff_structures/PtgExtraArray.cpp b/MsBinaryFile/XlsFile/Format/Logic/Biff_structures/PtgExtraArray.cpp index 651c772c9e..3e6c96cea6 100644 --- a/MsBinaryFile/XlsFile/Format/Logic/Biff_structures/PtgExtraArray.cpp +++ b/MsBinaryFile/XlsFile/Format/Logic/Biff_structures/PtgExtraArray.cpp @@ -138,7 +138,7 @@ void PtgExtraArray::save(CFRecord& record) const std::wstring PtgExtraArray::toString() const { std::wstring ret_val; - unsigned char col_cnt = cols; + unsigned char col_cnt = cols + 1; if (array_.empty()) return L""; @@ -152,7 +152,7 @@ const std::wstring PtgExtraArray::toString() const else { ret_val += L';'; - col_cnt = cols; + col_cnt = cols + 1; } } ret_val += array_.back()->toString();