sc/source/filter/xml/XMLStylesExportHelper.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 890b0482641bccd8281e4a952e8b8fe26fc745bd
Author:     Luboš Luňák <l.lu...@collabora.com>
AuthorDate: Mon Mar 28 13:24:14 2022 +0200
Commit:     Luboš Luňák <l.lu...@collabora.com>
CommitDate: Tue Mar 29 09:58:15 2022 +0200

    initialize output parameter of ScFormatRangeStyles::GetStyleNameIndex()
    
    ScMyDefaultStyles::FillDefaultStyles() calls this in a loop and compares
    with previous.
    
    Change-Id: Iba3420023e16c3091f4695640251a5525b28f467
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132199
    Tested-by: Jenkins
    Reviewed-by: Luboš Luňák <l.lu...@collabora.com>

diff --git a/sc/source/filter/xml/XMLStylesExportHelper.cxx 
b/sc/source/filter/xml/XMLStylesExportHelper.cxx
index c415aaa04e5f..0a403ac9de98 100644
--- a/sc/source/filter/xml/XMLStylesExportHelper.cxx
+++ b/sc/source/filter/xml/XMLStylesExportHelper.cxx
@@ -752,6 +752,7 @@ sal_Int32 ScFormatRangeStyles::GetStyleNameIndex(const 
sal_Int32 nTable,
     const sal_Int32 nColumn, const sal_Int32 nRow, bool& bIsAutoStyle) const
 {
     OSL_ENSURE(o3tl::make_unsigned(nTable) < aTables.size(), "wrong table");
+    bIsAutoStyle = false;
     if (o3tl::make_unsigned(nTable) >= aTables.size())
         return -1;
     for (const ScMyFormatRange & rFormatRange : aTables[nTable])

Reply via email to