sw/source/core/text/pormulti.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
New commits: commit 520336fd6526a9a8ad416eec1674a5d7e8af2650 Author: Stephan Bergmann <sberg...@redhat.com> Date: Mon Feb 20 12:15:48 2017 +0100 Better make the zero-initialization more explicit ...if initializing these members is necessary at all; a bit hard to tell from the code. Change-Id: I521eecca119b4f5150bdb7a1a93f4638e0186210 diff --git a/sw/source/core/text/pormulti.cxx b/sw/source/core/text/pormulti.cxx index 9927020..52fdf93 100644 --- a/sw/source/core/text/pormulti.cxx +++ b/sw/source/core/text/pormulti.cxx @@ -257,11 +257,16 @@ SwDoubleLinePortion::SwDoubleLinePortion(SwDoubleLinePortion& rDouble, sal_Int32 // internet style, which contains the 2-line-attribute. SwDoubleLinePortion::SwDoubleLinePortion(const SwMultiCreator& rCreate, sal_Int32 nEnd) : SwMultiPortion(nEnd) - , pBracket(new SwBracket()) + , pBracket(new SwBracket) , nLineDiff(0) , nBlank1(0) , nBlank2(0) { + pBracket->nAscent = 0; + pBracket->nHeight = 0; + pBracket->nPreWidth = 0; + pBracket->nPostWidth = 0; + SetDouble(); const SvxTwoLinesItem* pTwo = static_cast<const SvxTwoLinesItem*>(rCreate.pItem); if( pTwo ) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits