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

Stephan Bergmann sbergman at redhat.com
Thu Oct 23 05:34:37 PDT 2014


 sc/source/filter/excel/xestyle.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1e5d17f821783d0e4a2db92bb09eaff1eadc485a
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Oct 23 14:34:00 2014 +0200

    ATTR_VALUE_FORMAT is an SfxUInt32Item
    
    Change-Id: I38f7cece6157cd0a48e3c6a09b25eccc47f8525e

diff --git a/sc/source/filter/excel/xestyle.cxx b/sc/source/filter/excel/xestyle.cxx
index 6a59547..5b49205 100644
--- a/sc/source/filter/excel/xestyle.cxx
+++ b/sc/source/filter/excel/xestyle.cxx
@@ -2930,7 +2930,7 @@ XclExpDxfs::XclExpDxfs( const XclExpRoot& rRoot )
                         const SfxPoolItem *pPoolItem = NULL;
                         if( rSet.GetItemState( ATTR_VALUE_FORMAT, true, &pPoolItem ) == SfxItemState::SET )
                         {
-                            sal_uLong nScNumFmt = static_cast< sal_uInt32 >( static_cast< const SfxInt32Item* >(pPoolItem)->GetValue());
+                            sal_uLong nScNumFmt = static_cast< const SfxUInt32Item* >(pPoolItem)->GetValue();
                             sal_Int32 nXclNumFmt = GetRoot().GetNumFmtBuffer().Insert(nScNumFmt);
                             pNumFormat = new XclExpNumFmt( nScNumFmt, nXclNumFmt, GetNumberFormatCode( *this, nScNumFmt, mxFormatter.get(), mpKeywordTable.get() ));
                         }


More information about the Libreoffice-commits mailing list