sc/source/filter/excel/xeescher.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8df99b53bdf1d21076d008a2e4915b80cd6e2a61
Author:     Noel Grandin <[email protected]>
AuthorDate: Wed Nov 5 12:31:29 2025 +0200
Commit:     Noel Grandin <[email protected]>
CommitDate: Thu Nov 6 06:58:51 2025 +0100

    mso-test: escape text of vml element
    
    This is using the test document from ooo91342-1.xls.
    When importing and exporting to XLSX, we end up with an unescaped "&" 
character.
    
    Change-Id: Ieb578c42adf1eed2b29ef96af973c15d22b40e3e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193454
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Michael Stahl <[email protected]>

diff --git a/sc/source/filter/excel/xeescher.cxx 
b/sc/source/filter/excel/xeescher.cxx
index 7ea8f6a685f5..cea62fbcd8a6 100644
--- a/sc/source/filter/excel/xeescher.cxx
+++ b/sc/source/filter/excel/xeescher.cxx
@@ -1147,7 +1147,7 @@ void VmlFormControlExporter::EndShape(sal_Int32 
nShapeElement)
     pVmlDrawing->startElement(FSNS(XML_v, XML_textbox));
     pVmlDrawing->startElement(XML_div);
     pVmlDrawing->startElement(XML_font);
-    pVmlDrawing->write(m_aLabel);
+    pVmlDrawing->writeEscaped(m_aLabel);
     pVmlDrawing->endElement(XML_font);
     pVmlDrawing->endElement(XML_div);
     pVmlDrawing->endElement(FSNS(XML_v, XML_textbox));

Reply via email to