Kaydet (Commit) 946ea643 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: fdo#84649 can have negative values from ConvertToModelPosition

Change-Id: I570ee54e15a4cd4b11da26004164d9e6a1d8cdb9
üst de78b2ca
......@@ -103,6 +103,9 @@ sal_uInt16 SwBreakIt::GetRealScriptOfText( const OUString& rTxt, sal_Int32 nPos
{
if( nPos && nPos == rTxt.getLength() )
--nPos;
else if( nPos < 0)
nPos = 0;
nScript = xBreak->getScriptType( rTxt, nPos );
sal_Int32 nChgPos = 0;
if ( i18n::ScriptType::WEAK == nScript && nPos + 1 < rTxt.getLength() )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment