sw/source/core/text/porfld.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit a7d4185bad915b51c23e8e5e40fbaa528852face Author: Caolán McNamara <caol...@redhat.com> Date: Tue Mar 15 21:06:21 2016 +0000 crashtesting: Resolves: tdf#91291 crash on inserting text into footnote (cherry picked from commit 367f13fd584d5b67cbc3a7787892f12655a65d6c) Change-Id: I157389607d2a54349c54ebdb3e283deee126ca67 Reviewed-on: https://gerrit.libreoffice.org/25897 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Miklos Vajna <vmik...@collabora.co.uk> diff --git a/sw/source/core/text/porfld.cxx b/sw/source/core/text/porfld.cxx index 01026dc..63b6756 100644 --- a/sw/source/core/text/porfld.cxx +++ b/sw/source/core/text/porfld.cxx @@ -375,7 +375,8 @@ bool SwFieldPortion::Format( SwTextFormatInfo &rInf ) // These characters should not be contained in the follow // field portion. They are handled via the HookChar mechanism. - switch( aNew[0] ) + const sal_Unicode nNew = !aNew.isEmpty() ? aNew[0] : 0; + switch (nNew) { case CH_BREAK : bFull = true; // no break
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits