diff options
-rw-r--r-- | sw/source/core/doc/doctxm.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/doc/doctxm.cxx b/sw/source/core/doc/doctxm.cxx index 01fa812c4a1d..2782ff681a98 100644 --- a/sw/source/core/doc/doctxm.cxx +++ b/sw/source/core/doc/doctxm.cxx @@ -66,6 +66,7 @@ #include <tools/datetimeutils.hxx> #include <tools/globname.hxx> #include <com/sun/star/embed/XEmbeddedObject.hpp> +#include <o3tl/safeint.hxx> #include <memory> @@ -1248,7 +1249,7 @@ void SwTOXBaseSection::UpdateOutline( const SwTextNode* pOwnChapterNode, ::SetProgressState( 0, pDoc->GetDocShell() ); SwTextNode* pTextNd = pOutlineNode->GetTextNode(); if( pTextNd && pTextNd->Len() && pTextNd->HasWriterListeners() && - sal_uInt16( pTextNd->GetAttrOutlineLevel()) <= GetLevel() && + o3tl::make_unsigned( pTextNd->GetAttrOutlineLevel()) <= GetLevel() && pTextNd->getLayoutFrame(pLayout) && !pTextNd->IsHiddenByParaField() && !pTextNd->HasHiddenCharAttribute( true ) && |