sw/source/core/txtnode/txatbase.cxx | 1 + 1 file changed, 1 insertion(+)
New commits: commit 524461f8080793ac7d7dc282c0dd52551e556d30 Author: Michael Stahl <[email protected]> AuthorDate: Fri Sep 13 10:55:14 2024 +0200 Commit: Michael Stahl <[email protected]> CommitDate: Fri Sep 13 15:37:40 2024 +0200 tdf#162911 sw: add an assert not to use default items Change-Id: I6234b132bb741a3910a4a3f9a11efc0e3340fb21 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173321 Tested-by: Jenkins Reviewed-by: Michael Stahl <[email protected]> diff --git a/sw/source/core/txtnode/txatbase.cxx b/sw/source/core/txtnode/txatbase.cxx index 7b10d29297d8..7d02de606184 100644 --- a/sw/source/core/txtnode/txatbase.cxx +++ b/sw/source/core/txtnode/txatbase.cxx @@ -39,6 +39,7 @@ SwTextAttr::SwTextAttr( const SfxPoolItemHolder& rAttr, sal_Int32 nStart ) , m_bFormatIgnoreEnd(false) , m_bHasContent( false ) { + assert(!m_aAttr.getItem()->isStaticDefault()); } SwTextAttr::~SwTextAttr() COVERITY_NOEXCEPT_FALSE
