sw/source/core/doc/tblafmt.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 9a110a047aaae8f278c1f5c8052fdbfd383b5c2f
Author: Stephan Bergmann <[email protected]>
AuthorDate: Thu Feb 5 15:16:06 2026 +0100
Commit: Stephan Bergmann <[email protected]>
CommitDate: Thu Feb 5 17:00:31 2026 +0100
Fix UBSan invalid-bool-load
...after 513bfbd476113f648090a8275cece4dc04ba0463 "Writer: Adapt
'SvxAutoFormat'" started to break CppunitTest_sw_uiwriter4,
> /sw/source/core/doc/tblafmt.cxx:272:22: runtime error: load of value 190,
which is not a valid value for type 'bool'
> #0 0x7fd6f3603500 in SwTableAutoFormat::operator=(SwTableAutoFormat
const&) /sw/source/core/doc/tblafmt.cxx:272:22
> #1 0x7fd6f660e7ca in
SwUndoTableStyleMake::RedoImpl(sw::UndoRedoContext&)
/sw/source/core/undo/untbl.cxx:3187:22
> #2 0x7fd6f6439c80 in SwUndo::RedoWithContext(SfxUndoContext&)
/sw/source/core/undo/undobj.cxx:234:5
> #3 0x7fd72e6cd14f in SfxUndoManager::ImplRedo(SfxUndoContext*)
/svl/source/undo/undo.cxx:853:22
> #4 0x7fd72e6ce418 in SfxUndoManager::RedoWithContext(SfxUndoContext&)
/svl/source/undo/undo.cxx:819:12
> #5 0x7fd6f633c7a3 in
sw::UndoManager::impl_DoUndoRedo(sw::UndoManager::UndoOrRedoType, unsigned
long) /sw/source/core/undo/docundo.cxx:726:32
> #6 0x7fd6f633dbae in sw::UndoManager::Redo()
/sw/source/core/undo/docundo.cxx:772:16
> #7 0x7fd71db9a4ff in testTableStyleUndo::TestBody()
/sw/qa/extras/uiwriter/uiwriter4.cxx:1197:18
(<https://ci.libreoffice.org/job/lo_ubsan/3812/>)
Change-Id: I6d59f3c3cf3df22af0d89e21e0a1139c949931be
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198759
Reviewed-by: Karthik Godha <[email protected]>
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <[email protected]>
diff --git a/sw/source/core/doc/tblafmt.cxx b/sw/source/core/doc/tblafmt.cxx
index 108aa9725394..27400bd46ea2 100644
--- a/sw/source/core/doc/tblafmt.cxx
+++ b/sw/source/core/doc/tblafmt.cxx
@@ -232,6 +232,7 @@ SwTableAutoFormat::SwTableAutoFormat(const TableStyleName&
aName)
SwTableAutoFormat::SwTableAutoFormat(const SwTableAutoFormat& rNew)
: SvxAutoFormatData(rNew)
, m_aName(rNew.GetName())
+ , m_bHidden(false)
{
SvxAutoFormatData::SetName(rNew.GetName().toString());
for (size_t i = 0; i < ELEMENT_COUNT; i++)