diff options
Diffstat (limited to 'chart2/source/controller/dialogs/tp_PolarOptions.cxx')
-rw-r--r-- | chart2/source/controller/dialogs/tp_PolarOptions.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chart2/source/controller/dialogs/tp_PolarOptions.cxx b/chart2/source/controller/dialogs/tp_PolarOptions.cxx index f96d9c614450..865736b3b66d 100644 --- a/chart2/source/controller/dialogs/tp_PolarOptions.cxx +++ b/chart2/source/controller/dialogs/tp_PolarOptions.cxx @@ -22,6 +22,7 @@ #include <svl/eitem.hxx> #include <svl/intitem.hxx> +#include <svx/sdangitm.hxx> #include <officecfg/Office/Compatibility.hxx> namespace chart @@ -55,8 +56,7 @@ bool PolarOptionsTabPage::FillItemSet( SfxItemSet* rOutAttrs ) { if (m_xAngleDialWin->get_visible()) { - rOutAttrs->Put(SfxInt32Item(SCHATTR_STARTING_ANGLE, - static_cast< sal_Int32 >(m_xAngleDial->GetRotation()/100))); + rOutAttrs->Put(SdrAngleItem(SCHATTR_STARTING_ANGLE, m_xAngleDial->GetRotation())); } if( m_xCB_Clockwise->get_visible() ) @@ -74,8 +74,8 @@ void PolarOptionsTabPage::Reset(const SfxItemSet* rInAttrs) if (rInAttrs->GetItemState(SCHATTR_STARTING_ANGLE, true, &pPoolItem) == SfxItemState::SET) { - tools::Long nTmp = static_cast<tools::Long>(static_cast<const SfxInt32Item*>(pPoolItem)->GetValue()); - m_xAngleDial->SetRotation( nTmp*100 ); + sal_Int32 nTmp = static_cast<const SdrAngleItem*>(pPoolItem)->GetValue(); + m_xAngleDial->SetRotation( nTmp ); } else { |