[Libreoffice-commits] .: sw/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Sep 27 02:10:05 PDT 2012


 sw/source/core/unocore/unodraw.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f1c2c09439aed30dec6c1b4f26dc9f70ce4985f8
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Sep 27 10:09:45 2012 +0100

    WaE: uninit variable
    
    Change-Id: I39d63b53fa400235d772cd2525695970081db91b

diff --git a/sw/source/core/unocore/unodraw.cxx b/sw/source/core/unocore/unodraw.cxx
index 8b141e4..8605b97 100644
--- a/sw/source/core/unocore/unodraw.cxx
+++ b/sw/source/core/unocore/unodraw.cxx
@@ -1273,7 +1273,7 @@ void SwXShape::setPropertyValue(const rtl::OUString& rPropertyName, const uno::A
                     if(pSvxShape)
                     {
                         SdrObject* pObj = pSvxShape->GetSdrObject();
-                        sal_Int16 nPercent;
+                        sal_Int16 nPercent(100);
                         aValue >>= nPercent;
                         if ( pEntry->nMemberId == MID_FRMSIZE_REL_WIDTH )
                             pObj->SetRelativeWidth( nPercent / 100.0 );


More information about the Libreoffice-commits mailing list