summaryrefslogtreecommitdiff
path: root/sw/source/core/txtnode/txtatr2.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/txtnode/txtatr2.cxx')
-rw-r--r--sw/source/core/txtnode/txtatr2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/txtnode/txtatr2.cxx b/sw/source/core/txtnode/txtatr2.cxx
index f9d23617ece3..71cbb16e2be7 100644
--- a/sw/source/core/txtnode/txtatr2.cxx
+++ b/sw/source/core/txtnode/txtatr2.cxx
@@ -231,7 +231,7 @@ SwCharFormat* SwTextRuby::GetCharFormat()
const SwDoc& rDoc = GetTextNode().GetDoc();
const OUString& rStr = rFormat.GetCharFormatName();
const sal_uInt16 nId = rStr.isEmpty()
- ? static_cast<sal_uInt16>(RES_POOLCHR_RUBYTEXT)
+ ? o3tl::narrowing<sal_uInt16>(RES_POOLCHR_RUBYTEXT)
: rFormat.GetCharFormatId();
// JP 10.02.2000, Bug 72806: don't modify the doc for getting the