chart2/source/controller/dialogs/tp_AxisPositions.cxx | 2 +- chart2/source/controller/dialogs/tp_Scale.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
New commits: commit 6987f1d3982c369fef401d2fbe3714f68f4398ab Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Fri Feb 15 19:20:26 2019 +0100 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Fri Feb 15 20:50:31 2019 +0100 These items are of type SfxUInt32Item ...see include/svx/svxids.hrc for SID_ATTR_NUMBERFORMAT_VALUE and chart2/source/inc/chartview/ChartSfxItemIds.hxx for SCHATTR_AXIS_CROSSING_MAIN_AXIS_NUMBERFORMAT, and as reported by -fsanitize=vptr in sc/qa/uitest/chart/tdf122398.py recently added to UITest_chart (<https://ci.libreoffice.org/job/lo_ubsan/1188/>). Change-Id: Ic1e2f3390bd54b722730e6dd7962d613587774b1 Reviewed-on: https://gerrit.libreoffice.org/67884 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/chart2/source/controller/dialogs/tp_AxisPositions.cxx b/chart2/source/controller/dialogs/tp_AxisPositions.cxx index 3fdc197f6583..15a6bda7e859 100644 --- a/chart2/source/controller/dialogs/tp_AxisPositions.cxx +++ b/chart2/source/controller/dialogs/tp_AxisPositions.cxx @@ -243,7 +243,7 @@ void AxisPositionsTabPage::SetNumFormatter( SvNumberFormatter* pFormatter ) const SfxPoolItem *pPoolItem = nullptr; if( GetItemSet().GetItemState( SCHATTR_AXIS_CROSSING_MAIN_AXIS_NUMBERFORMAT, true, &pPoolItem ) == SfxItemState::SET ) { - sal_uLong nFmt = static_cast<sal_uLong>(static_cast<const SfxInt32Item*>(pPoolItem)->GetValue()); + sal_uLong nFmt = static_cast<const SfxUInt32Item*>(pPoolItem)->GetValue(); m_xED_CrossesAt->set_format_key( nFmt ); } } diff --git a/chart2/source/controller/dialogs/tp_Scale.cxx b/chart2/source/controller/dialogs/tp_Scale.cxx index ddd305762e24..fc0375d9c60c 100644 --- a/chart2/source/controller/dialogs/tp_Scale.cxx +++ b/chart2/source/controller/dialogs/tp_Scale.cxx @@ -500,7 +500,7 @@ void ScaleTabPage::SetNumFormat() if( GetItemSet().GetItemState( SID_ATTR_NUMBERFORMAT_VALUE, true, &pPoolItem ) == SfxItemState::SET ) { - sal_uLong nFmt = static_cast<sal_uLong>(static_cast<const SfxInt32Item*>(pPoolItem)->GetValue()); + sal_uLong nFmt = static_cast<const SfxUInt32Item*>(pPoolItem)->GetValue(); m_xFmtFldMax->set_format_key(nFmt); m_xFmtFldMin->set_format_key(nFmt); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits