[Libreoffice-commits] core.git: sw/source

Caolán McNamara caolanm at redhat.com
Mon Sep 9 12:18:14 PDT 2013


 sw/source/core/text/inftxt.hxx |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

New commits:
commit 9bba2d6a5ce91d851cfa15cbef3ba06e6907bc49
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Sep 9 20:16:37 2013 +0100

    CID#1079152 uninitialized m_bOnWin
    
    Change-Id: I8f7e56ce86e7097379a8e063405bf95405616318

diff --git a/sw/source/core/text/inftxt.hxx b/sw/source/core/text/inftxt.hxx
index 1396c7a..99c777b 100644
--- a/sw/source/core/text/inftxt.hxx
+++ b/sw/source/core/text/inftxt.hxx
@@ -205,10 +205,13 @@ public:
                    const sal_Int32 nIdx = 0,
                    const xub_StrLen nLen = STRING_LEN );
 
-    inline SwTxtSizeInfo( SwTxtFrm *pTxtFrm, SwFont *pTxtFnt = 0,
+    SwTxtSizeInfo( SwTxtFrm *pTxtFrm, SwFont *pTxtFnt = 0,
                    const sal_Int32 nIndex = 0,
                    const xub_StrLen nLength = STRING_LEN )
-           { CtorInitTxtSizeInfo( pTxtFrm, pTxtFnt, nIndex, nLength ); }
+        : m_bOnWin(false)
+    {
+        CtorInitTxtSizeInfo( pTxtFrm, pTxtFnt, nIndex, nLength );
+    }
 
     // GetMultiAttr returns the text attribute of the multiportion,
     // if rPos is inside any multi-line part.


More information about the Libreoffice-commits mailing list