summaryrefslogtreecommitdiff
path: root/sw/source/core/text/porlay.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/text/porlay.cxx')
-rw-r--r--sw/source/core/text/porlay.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/text/porlay.cxx b/sw/source/core/text/porlay.cxx
index 011490cc3568..312a7a7b38d2 100644
--- a/sw/source/core/text/porlay.cxx
+++ b/sw/source/core/text/porlay.cxx
@@ -946,7 +946,7 @@ void SwScriptInfo::InitScriptInfo(const SwTextNode& rNode,
// all of the characters in this group are weak. We have to assign
// the scripts to these characters depending on the fonts which are
// set for these characters to display them.
- TextFrameIndex nEnd = TextFrameIndex(
+ TextFrameIndex nEnd(
g_pBreakIt->GetBreakIter()->endOfScript(rText, sal_Int32(nChg), WEAK));
if (nEnd > TextFrameIndex(rText.getLength()) || nEnd < TextFrameIndex(0))