diff options
Diffstat (limited to 'sc/source/ui/unoobj/dapiuno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/dapiuno.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/dapiuno.cxx b/sc/source/ui/unoobj/dapiuno.cxx index 9ab239548c38..99d8add7102b 100644 --- a/sc/source/ui/unoobj/dapiuno.cxx +++ b/sc/source/ui/unoobj/dapiuno.cxx @@ -1832,7 +1832,8 @@ void SAL_CALL ScDataPilotFieldObj::setPropertyValue( const OUString& aPropertyNa std::vector< ScGeneralFunction > aSubTotals(aSeq.getLength()); for (sal_Int32 nIndex = 0; nIndex < aSeq.getLength(); nIndex++) { - aSubTotals[nIndex] = static_cast<ScGeneralFunction>(aSeq[nIndex]); + const int nValAsInt = static_cast<int>(aSeq[nIndex]); + aSubTotals[nIndex] = static_cast<ScGeneralFunction>(nValAsInt); } setSubtotals( aSubTotals ); } |