diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-10-23 14:34:00 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-10-23 14:34:00 +0200 |
commit | 1e5d17f821783d0e4a2db92bb09eaff1eadc485a (patch) | |
tree | 2e2503887722d80021689f627107f1128f3b4b7a | |
parent | 0e63397d7fda5325e83eaf439cdd745f797f885c (diff) |
ATTR_VALUE_FORMAT is an SfxUInt32Item
Change-Id: I38f7cece6157cd0a48e3c6a09b25eccc47f8525e
-rw-r--r-- | sc/source/filter/excel/xestyle.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xestyle.cxx b/sc/source/filter/excel/xestyle.cxx index 6a59547c1eca..5b49205df033 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() )); } |