From f00581fd1dcd9625a5cde18ebec6eaa59e5fccda Mon Sep 17 00:00:00 2001 From: Elena Subbotina Date: Thu, 23 Apr 2026 10:52:25 +0300 Subject: [PATCH] fix bug #81039 --- .../XlsFile/Format/Logic/Biff_unions/ATTACHEDLABEL_bu.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MsBinaryFile/XlsFile/Format/Logic/Biff_unions/ATTACHEDLABEL_bu.cpp b/MsBinaryFile/XlsFile/Format/Logic/Biff_unions/ATTACHEDLABEL_bu.cpp index e2448fb871..7a48e52d8e 100644 --- a/MsBinaryFile/XlsFile/Format/Logic/Biff_unions/ATTACHEDLABEL_bu.cpp +++ b/MsBinaryFile/XlsFile/Format/Logic/Biff_unions/ATTACHEDLABEL_bu.cpp @@ -393,12 +393,12 @@ int ATTACHEDLABEL::serialize(std::wostream & _stream, bool isPosition) int ATTACHEDLABEL::serialize_rPr (std::wostream & _stream, int iFnt, bool rtl, bool defRPr) { - if (!pGlobalWorkbookInfoPtr) return 0; + if (!pGlobalWorkbookInfoPtr) return 0; int sz = pGlobalWorkbookInfoPtr->m_arFonts.size(); - if (iFnt - 1 > sz || iFnt < 1) return 0; + if (iFnt > sz || iFnt < 1) return 0; - Font * font = dynamic_cast(pGlobalWorkbookInfoPtr->m_arFonts[iFnt -1].get()); + Font * font = dynamic_cast(pGlobalWorkbookInfoPtr->m_arFonts[iFnt - 1].get()); Text * text_props = dynamic_cast(m_TextProperties.get());