diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-27 10:55:13 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-27 18:41:57 +0200 |
commit | bbd500e14fce92b27cfc09e7cffd346e36eb5fb0 (patch) | |
tree | 40f3766253cb9ef505d4113ee3c5f4d9d3823052 /sd/source | |
parent | 97710225f015c8716c80e55ecdb78832f2edc731 (diff) |
use SdrCircKind enum more widely
and make it a scoped enum
Change-Id: I6325ff86ff8566135f6d01a576c659539dcb3ed9
Reviewed-on: https://gerrit.libreoffice.org/78176
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/func/fuconarc.cxx | 12 | ||||
-rw-r--r-- | sd/source/ui/func/fuconrec.cxx | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/sd/source/ui/func/fuconarc.cxx b/sd/source/ui/func/fuconarc.cxx index f10e2315f774..8a968d351051 100644 --- a/sd/source/ui/func/fuconarc.cxx +++ b/sd/source/ui/func/fuconarc.cxx @@ -90,12 +90,12 @@ void FuConstructArc::DoExecute( SfxRequest& rReq ) Activate(); // sets aObjKind SdrCircObj* pNewCircle = - new SdrCircObj( - mpView->getSdrModelFromSdrView(), - static_cast<SdrObjKind>(mpView->GetCurrentObjIdentifier()), - aNewRectangle, - static_cast<long>(pPhiStart->GetValue () * 10.0), - static_cast<long>(pPhiEnd->GetValue () * 10.0)); + new SdrCircObj( + mpView->getSdrModelFromSdrView(), + ToSdrCircKind(static_cast<SdrObjKind>(mpView->GetCurrentObjIdentifier())), + aNewRectangle, + static_cast<long>(pPhiStart->GetValue () * 10.0), + static_cast<long>(pPhiEnd->GetValue () * 10.0)); SdrPageView *pPV = mpView->GetSdrPageView(); mpView->InsertObjectAtView(pNewCircle, *pPV, SdrInsertFlags::SETDEFLAYER); diff --git a/sd/source/ui/func/fuconrec.cxx b/sd/source/ui/func/fuconrec.cxx index 5d937e118279..05035cd03252 100644 --- a/sd/source/ui/func/fuconrec.cxx +++ b/sd/source/ui/func/fuconrec.cxx @@ -141,7 +141,7 @@ void FuConstructRectangle::DoExecute( SfxRequest& rReq ) pCenterY->GetValue () + pAxisY->GetValue () / 2); SdrCircObj *pNewCircle = new SdrCircObj( mpView->getSdrModelFromSdrView(), - OBJ_CIRC, + SdrCircKind::Full, aNewRectangle); SdrPageView *pPV = mpView->GetSdrPageView(); |