diff options
Diffstat (limited to 'sw/source/core/txtnode/txtedt.cxx')
-rw-r--r-- | sw/source/core/txtnode/txtedt.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/txtnode/txtedt.cxx b/sw/source/core/txtnode/txtedt.cxx index 54af3640e13b..e7f6a326dae2 100644 --- a/sw/source/core/txtnode/txtedt.cxx +++ b/sw/source/core/txtnode/txtedt.cxx @@ -27,6 +27,7 @@ #include <editeng/hangulhanja.hxx> #include <i18nutil/transliteration.hxx> #include <SwSmartTagMgr.hxx> +#include <o3tl/safeint.hxx> #include <officecfg/Office/Writer.hxx> #include <unotools/transliterationwrapper.hxx> #include <unotools/charclass.hxx> @@ -1904,7 +1905,7 @@ void SwTextNode::TransliterateText( swTransliterationChgData & rData = aChanges[ aChanges.size() - 1 - i ]; nSum += rData.sChanged.getLength() - rData.nLen; - if (nSum > static_cast<size_t>(GetSpaceLeft())) + if (nSum > o3tl::make_unsigned(GetSpaceLeft())) { SAL_WARN("sw.core", "SwTextNode::ReplaceTextOnly: " "node text with insertion > node capacity."); |