sc/source/filter/xml/XMLStylesExportHelper.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 48b1b123ccd3925281836cd8daf2f568bb4177b3 Author: Noel Grandin <[email protected]> AuthorDate: Wed Jun 25 21:10:51 2025 +0200 Commit: Caolán McNamara <[email protected]> CommitDate: Fri Jun 27 10:27:10 2025 +0200 tdf#165481 memory leak in Save AutoRecovery information regression from commit b8720d1e1f0842d52f1830c48ef7551b1868ae6f Author: Luboš Luňák <[email protected]> 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 <[email protected]> Tested-by: Jenkins (cherry picked from commit 0668573914ccf9f8611b38289471909c4d0f7888) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187018 Reviewed-by: Caolán McNamara <[email protected]> diff --git a/sc/source/filter/xml/XMLStylesExportHelper.cxx b/sc/source/filter/xml/XMLStylesExportHelper.cxx index b6d0a510419d..11ac33f5004a 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);
