sw/source/core/doc/tblafmt.cxx | 1 + sw/source/uibase/app/docst.cxx | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-)
New commits: commit dd64ad782934c9f8988ee29467e60cb5fa3f759e Author: Caolán McNamara <[email protected]> AuthorDate: Mon Feb 16 09:24:23 2026 +0000 Commit: Caolán McNamara <[email protected]> CommitDate: Mon Feb 16 13:59:26 2026 +0100 cid#1681348 Uninitialized scalar field, presumably this should be copied Change-Id: Ia194517991969c48e85879991ced7f95c0e33707 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199460 Tested-by: Caolán McNamara <[email protected]> Reviewed-by: Caolán McNamara <[email protected]> diff --git a/sw/source/core/doc/tblafmt.cxx b/sw/source/core/doc/tblafmt.cxx index 57fdcb353bbe..5005421b7236 100644 --- a/sw/source/core/doc/tblafmt.cxx +++ b/sw/source/core/doc/tblafmt.cxx @@ -231,6 +231,7 @@ SwTableAutoFormat::SwTableAutoFormat(const SwTableAutoFormat& rNew) : SvxAutoFormatData(rNew) , m_aName(rNew.GetName()) , m_bHidden(false) + , m_bUserDefined(rNew.m_bUserDefined) { SvxAutoFormatData::SetName(rNew.GetName().toString()); for (size_t i = 0; i < ELEMENT_COUNT; i++) commit 0c088b992f75780bbadc0c49d760c9624e75546f Author: Caolán McNamara <[email protected]> AuthorDate: Mon Feb 16 09:22:17 2026 +0000 Commit: Caolán McNamara <[email protected]> CommitDate: Mon Feb 16 13:59:14 2026 +0100 cid#1681351 Dereference before null check Change-Id: I82b44b46be96b556b9fdf74b27fce0bb4d6fef55 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199459 Tested-by: Caolán McNamara <[email protected]> Reviewed-by: Caolán McNamara <[email protected]> diff --git a/sw/source/uibase/app/docst.cxx b/sw/source/uibase/app/docst.cxx index 938f01726cf0..79eaced1d14b 100644 --- a/sw/source/uibase/app/docst.cxx +++ b/sw/source/uibase/app/docst.cxx @@ -961,9 +961,10 @@ void SwDocShell::Edit( SwTableAutoFormatTable& rTableStyles = GetDoc()->GetTableStyles(); const OUString sOldName = rName.toString(); SwTableAutoFormat* pData = rTableStyles.FindAutoFormat(sOldName); - SwTableAutoFormat pOld(*pData); if (pData) { + SwTableAutoFormat pOld(*pData); + if (!rParent.isEmpty()) pData->SetParent(rParent.toString()); bool bRTL = pCurrShell->IsCursorInTable() ? pCurrShell->IsTableRightToLeft()
