Hi,
I have submitted a patch for review:
https://gerrit.libreoffice.org/3647
To pull it, you can do:
git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/47/3647/1
Keep OUString instance by using local variable to avoid crash.
Crash with GCC 4.8 without the modification.
Change-Id: Ieb2437f2ee6b02884aa10f2d03a4223306329cd8
---
M sw/source/core/text/itrcrsr.cxx
1 file changed, 2 insertions(+), 1 deletion(-)
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 @@
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() ?
--
To view, visit https://gerrit.libreoffice.org/3647
To unsubscribe, visit https://gerrit.libreoffice.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ieb2437f2ee6b02884aa10f2d03a4223306329cd8
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Arnaud Versini <arnaud.versini@gmail.com>
Context
- [PATCH] Keep OUString instance by using local variable to avoid cras... · Arnaud Versini (via Code Review)
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.