diff options
Diffstat (limited to 'sw/source/core/access/accportions.cxx')
-rw-r--r-- | sw/source/core/access/accportions.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/access/accportions.cxx b/sw/source/core/access/accportions.cxx index 9310a290a184..b1da888d5af7 100644 --- a/sw/source/core/access/accportions.cxx +++ b/sw/source/core/access/accportions.cxx @@ -615,7 +615,7 @@ TextFrameIndex SwAccessiblePortionData::FillSpecialPos( // (if necessary) size_t nRefLine = FindBreak( m_aLineBreaks, nRefPos ); size_t nMyLine = FindBreak( m_aLineBreaks, nPos ); - sal_uInt16 nLineOffset = static_cast<sal_uInt16>( nMyLine - nRefLine ); + sal_uInt16 nLineOffset = o3tl::narrowing<sal_uInt16>( nMyLine - nRefLine ); if( nLineOffset != 0 ) nRefPos = m_aLineBreaks[ nMyLine ]; |