sc/source/filter/xml/XMLStylesExportHelper.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 0668573914ccf9f8611b38289471909c4d0f7888 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Wed Jun 25 21:10:51 2025 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Thu Jun 26 08:02:33 2025 +0200 tdf#165481 memory leak in Save AutoRecovery information regression from commit b8720d1e1f0842d52f1830c48ef7551b1868ae6f Author: Luboš Luňák <l.lu...@collabora.com> Date: Fri Mar 25 12:42:58 2022 +0100 fix ScTable::GetLastChangedCol() for unallocated columns Change-Id: I639ecc87839a9149c45583d524850db66769bfc7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187003 Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> Tested-by: Jenkins diff --git a/sc/source/filter/xml/XMLStylesExportHelper.cxx b/sc/source/filter/xml/XMLStylesExportHelper.cxx index 09e38476df83..afa0e9b87a71 100644 --- a/sc/source/filter/xml/XMLStylesExportHelper.cxx +++ b/sc/source/filter/xml/XMLStylesExportHelper.cxx @@ -425,7 +425,7 @@ sal_Int32 ScMyDefaultStyles::GetStyleNameIndex(const ScFormatRangeStyles* pCellS } void ScMyDefaultStyles::FillDefaultStyles(const sal_Int32 nTable, - const sal_Int32 nLastRow, const sal_Int32 nLastCol, + const sal_Int32 nLastRow, sal_Int32 nLastCol, const ScFormatRangeStyles* pCellStyles, ScDocument* pDoc) { maColDefaults.clear(); @@ -434,7 +434,7 @@ void ScMyDefaultStyles::FillDefaultStyles(const sal_Int32 nTable, return ; SCTAB nTab = static_cast<SCTAB>(nTable); - pDoc->CreateColumnIfNotExists(nTab, nLastCol); + nLastCol = pDoc->ClampToAllocatedColumns(nTab, nLastCol); sal_Int32 nPos; ScMyDefaultStyleList* pDefaults = &maColDefaults; bool bPrevAutoStyle(false);