summaryrefslogtreecommitdiff
path: root/sd/source/ui/func
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-01-02 19:00:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-01-03 08:52:31 +0100
commitf4e8c28e465d103a7ac4bc711e3b23ad3cae9996 (patch)
tree59f9cead76367664d56da23a3c9b7ff3dbb03f4e /sd/source/ui/func
parente1c561d40de86c1b8827809398f2995def62fd52 (diff)
Revert "use SdrAngleItem for ID_VAL_ANGLE*"
This reverts commit 0a99feb4539b8c64679778cd5f6c99f58fbaedd3. Because I didn't find the places that call this SDI action, and I can't seem to find them now, so I can't fix the callers to use SdrAngleItem in their parameter list. Change-Id: Ia1a07c0486b6ecca1b8a8a9d597a2404e85c0786 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108596 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/func')
-rw-r--r--sd/source/ui/func/fuconarc.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/func/fuconarc.cxx b/sd/source/ui/func/fuconarc.cxx
index 1ced022927ac..093d0a70f916 100644
--- a/sd/source/ui/func/fuconarc.cxx
+++ b/sd/source/ui/func/fuconarc.cxx
@@ -80,8 +80,8 @@ void FuConstructArc::DoExecute( SfxRequest& rReq )
const SfxUInt32Item* pCenterY = rReq.GetArg<SfxUInt32Item>(ID_VAL_CENTER_Y);
const SfxUInt32Item* pAxisX = rReq.GetArg<SfxUInt32Item>(ID_VAL_AXIS_X);
const SfxUInt32Item* pAxisY = rReq.GetArg<SfxUInt32Item>(ID_VAL_AXIS_Y);
- const SdrAngleItem* pPhiStart = rReq.GetArg<SdrAngleItem>(ID_VAL_ANGLESTART);
- const SdrAngleItem* pPhiEnd = rReq.GetArg<SdrAngleItem>(ID_VAL_ANGLEEND);
+ const SfxUInt32Item* pPhiStart = rReq.GetArg<SfxUInt32Item>(ID_VAL_ANGLESTART);
+ const SfxUInt32Item* pPhiEnd = rReq.GetArg<SfxUInt32Item>(ID_VAL_ANGLEEND);
::tools::Rectangle aNewRectangle (pCenterX->GetValue () - pAxisX->GetValue () / 2,
pCenterY->GetValue () - pAxisY->GetValue () / 2,
@@ -94,8 +94,8 @@ void FuConstructArc::DoExecute( SfxRequest& rReq )
mpView->getSdrModelFromSdrView(),
ToSdrCircKind(mpView->GetCurrentObjIdentifier()),
aNewRectangle,
- pPhiStart->GetValue(),
- pPhiEnd->GetValue());
+ Degree100(pPhiStart->GetValue() * 10),
+ Degree100(pPhiEnd->GetValue() * 10));
SdrPageView *pPV = mpView->GetSdrPageView();
mpView->InsertObjectAtView(pNewCircle, *pPV, SdrInsertFlags::SETDEFLAYER);