summaryrefslogtreecommitdiff
path: root/chart2/source/controller/dialogs/tp_PolarOptions.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2020-12-31 19:04:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-01-02 08:36:33 +0100
commit152b651cd023b7f411affce49ff160c99826abd5 (patch)
treed783a59431678b20d4a4781f21c552c9a990e8f0 /chart2/source/controller/dialogs/tp_PolarOptions.cxx
parent05284641e381ec2bb3b72a39b5c7334127f6c7ba (diff)
use SdrAngleItem for SCHATTR_STARTING_ANGLE
Change-Id: Ibe6b882806df1b30e38f4461284a7514f4407b3c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108554 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/controller/dialogs/tp_PolarOptions.cxx')
-rw-r--r--chart2/source/controller/dialogs/tp_PolarOptions.cxx8
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
{