[Libreoffice-commits] core.git: sw/source
Arnaud Versini
arnaud.versini at gmail.com
Sun Apr 28 07:23:56 PDT 2013
sw/source/core/text/itrcrsr.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit d0d295af530e7dc1379a878ba5854e28eae250ad
Author: Arnaud Versini <arnaud.versini at gmail.com>
Date: Sun Apr 28 14:38:22 2013 +0200
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/3647
Reviewed-by: Miklos Vajna <vmiklos at suse.cz>
Tested-by: Miklos Vajna <vmiklos at suse.cz>
diff --git a/sw/source/core/text/itrcrsr.cxx b/sw/source/core/text/itrcrsr.cxx
index b68b5ce..d567e76 100644
--- a/sw/source/core/text/itrcrsr.cxx
+++ b/sw/source/core/text/itrcrsr.cxx
@@ -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() ?
More information about the Libreoffice-commits
mailing list