Kaydet (Commit) d0d295af authored tarafından Arnaud Versini's avatar Arnaud Versini Kaydeden (comit) Miklos Vajna

Keep OUString instance by using local variable to avoid crash.

Crash with GCC 4.8 without the modification.
Temporary fix, should be replaced by OUString copy.

Change-Id: Ieb2437f2ee6b02884aa10f2d03a4223306329cd8
Reviewed-on: https://gerrit.libreoffice.org/3647Reviewed-by: 's avatarMiklos Vajna <vmiklos@suse.cz>
Tested-by: 's avatarMiklos Vajna <vmiklos@suse.cz>
üst 92b618f5
......@@ -1593,7 +1593,8 @@ xub_StrLen SwTxtCursor::GetCrsrOfst( SwPosition *pPos, const Point &rPoint,
else
nOldProp = 0;
{
SwTxtSizeInfo aSizeInf( GetInfo(), rText, nCurrStart );
OUString rTextStr = rText;
SwTxtSizeInfo aSizeInf( GetInfo(), rTextStr, nCurrStart );
((SwTxtCursor*)this)->SeekAndChg( aSizeInf );
SwTxtSlot aDiffTxt( &aSizeInf, ((SwTxtPortion*)pPor), false, false );
SwFontSave aSave( aSizeInf, pPor->IsDropPortion() ?
......
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