From 91f27bf7718082000fc281400b9e71dab75571e8 Mon Sep 17 00:00:00 2001 From: Elena Subbotina Date: Tue, 29 Jul 2025 17:21:32 +0300 Subject: [PATCH] fix bug #76151 --- OOXML/Common/ComplexTypes.h | 8 ++-- OOXML/Common/SimpleTypes_Word.cpp | 2 +- OOXML/DocxFormat/Logic/RunProperty.h | 72 ++++++++++++++-------------- 3 files changed, 41 insertions(+), 41 deletions(-) diff --git a/OOXML/Common/ComplexTypes.h b/OOXML/Common/ComplexTypes.h index ea14aa1fc3..d74af9c334 100644 --- a/OOXML/Common/ComplexTypes.h +++ b/OOXML/Common/ComplexTypes.h @@ -419,10 +419,10 @@ namespace ComplexTypes void ReadAttributes(XmlUtils::CXmlLiteReader& oReader); public: - nullable m_oThemeColor; - nullable m_oThemeShade; - nullable m_oThemeTint; - nullable m_oVal; + nullable m_oThemeColor; + nullable m_oThemeShade; + nullable m_oThemeTint; + nullable m_oVal; }; //-------------------------------------------------------------------------------- diff --git a/OOXML/Common/SimpleTypes_Word.cpp b/OOXML/Common/SimpleTypes_Word.cpp index 284db1b0e7..43a9268f66 100644 --- a/OOXML/Common/SimpleTypes_Word.cpp +++ b/OOXML/Common/SimpleTypes_Word.cpp @@ -1808,7 +1808,7 @@ namespace SimpleTypes EHexColor CHexColor::FromString(const std::wstring &sValueSrc) { - if ( L"auto" == sValueSrc || L"none" == sValueSrc ) + if (L"automatic" == sValueSrc || L"auto" == sValueSrc || L"none" == sValueSrc ) this->m_eValue = hexcolorAuto; else { diff --git a/OOXML/DocxFormat/Logic/RunProperty.h b/OOXML/DocxFormat/Logic/RunProperty.h index eef12c0673..6eac0099a6 100644 --- a/OOXML/DocxFormat/Logic/RunProperty.h +++ b/OOXML/DocxFormat/Logic/RunProperty.h @@ -129,63 +129,63 @@ namespace OOX nullable m_oBold; nullable m_oBoldCs; - nullable m_oBdr; + nullable m_oBdr; nullable m_oCaps; - nullable m_oColor; + nullable m_oColor; nullable m_oCs; - nullable m_oDel; + nullable m_oDel; nullable m_oDStrike; - nullable m_oEastAsianLayout; - nullable m_oEffect; - nullable m_oEm; + nullable m_oEastAsianLayout; + nullable m_oEffect; + nullable m_oEm; nullable m_oEmboss; - nullable m_oFitText; - nullable m_oHighlight; - nullable m_oIns; + nullable m_oFitText; + nullable m_oHighlight; + nullable m_oIns; nullable m_oItalic; nullable m_oItalicCs; nullable m_oImprint; - nullable m_oKern; - nullable m_oLang; + nullable m_oKern; + nullable m_oLang; nullable m_oNoProof; nullable m_oMath; - nullable m_oMoveFrom; - nullable m_oMoveTo; + nullable m_oMoveFrom; + nullable m_oMoveTo; nullable m_oOutline; - nullable m_oPosition; - nullable m_oRFonts; - nullable m_oRPrChange; - nullable m_oRStyle; + nullable m_oPosition; + nullable m_oRFonts; + nullable m_oRPrChange; + nullable m_oRStyle; nullable m_oRtL; nullable m_oShadow; - nullable m_oShd; + nullable m_oShd; nullable m_oSmallCaps; nullable m_oSnapToGrid; - nullable m_oSpacing; + nullable m_oSpacing; nullable m_oSpecVanish; nullable m_oStrike; - nullable m_oSz; - nullable m_oSzCs; - nullable m_oU; + nullable m_oSz; + nullable m_oSzCs; + nullable m_oU; nullable m_oVanish; - nullable m_oVertAlign; - nullable m_oW; + nullable m_oVertAlign; + nullable m_oW; nullable m_oWebHidden; //ext - PPTX::Logic::UniFill m_oTextFill; - nullable m_oTextOutline; - nullable m_oLigatures; - nullable m_oNumSpacing; - nullable m_oNumForm; - nullable m_oStylisticSets; + PPTX::Logic::UniFill m_oTextFill; + nullable m_oTextOutline; + nullable m_oLigatures; + nullable m_oNumSpacing; + nullable m_oNumForm; + nullable m_oStylisticSets; nullable m_oCntxtAlts; - nullable m_oReflection; - nullable m_oGlow; - nullable m_oShadowExt; - nullable m_oProps3d; - nullable m_oScene3d; + nullable m_oReflection; + nullable m_oGlow; + nullable m_oShadowExt; + nullable m_oProps3d; + nullable m_oScene3d; - OOX::WritingElement* m_pText = NULL; //temp ... for Run object -> XpertdocOnlineDemoEn.docx + OOX::WritingElement* m_pText = NULL; //temp ... for Run object -> XpertdocOnlineDemoEn.docx }; } // namespace Logic