summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-27 10:55:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-27 18:41:57 +0200
commitbbd500e14fce92b27cfc09e7cffd346e36eb5fb0 (patch)
tree40f3766253cb9ef505d4113ee3c5f4d9d3823052 /sc/source
parent97710225f015c8716c80e55ecdb78832f2edc731 (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 'sc/source')
-rw-r--r--sc/source/core/tool/detfunc.cxx2
-rw-r--r--sc/source/filter/excel/xiescher.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/tool/detfunc.cxx b/sc/source/core/tool/detfunc.cxx
index 48a6c432db1e..76a42f661005 100644
--- a/sc/source/core/tool/detfunc.cxx
+++ b/sc/source/core/tool/detfunc.cxx
@@ -638,7 +638,7 @@ void ScDetectiveFunc::DrawCircle( SCCOL nCol, SCROW nRow, ScDetectiveData& rData
SdrCircObj* pCircle = new SdrCircObj(
*pModel,
- OBJ_CIRC,
+ SdrCircKind::Full,
aRect);
SfxItemSet& rAttrSet = rData.GetCircleSet();
diff --git a/sc/source/filter/excel/xiescher.cxx b/sc/source/filter/excel/xiescher.cxx
index 610c6983cc4a..0866ca17a20d 100644
--- a/sc/source/filter/excel/xiescher.cxx
+++ b/sc/source/filter/excel/xiescher.cxx
@@ -1247,7 +1247,7 @@ SdrObjectUniquePtr XclImpOvalObj::DoCreateSdrObj( XclImpDffConverter& rDffConv,
SdrObjectUniquePtr xSdrObj(
new SdrCircObj(
*GetDoc().GetDrawLayer(),
- OBJ_CIRC,
+ SdrCircKind::Full,
rAnchorRect));
ConvertRectStyle( *xSdrObj );
rDffConv.Progress();
@@ -1319,7 +1319,7 @@ SdrObjectUniquePtr XclImpArcObj::DoCreateSdrObj( XclImpDffConverter& rDffConv, c
aNewRect.AdjustTop( -(rAnchorRect.GetHeight()) );
break;
}
- SdrObjKind eObjKind = maFillData.IsFilled() ? OBJ_SECT : OBJ_CARC;
+ SdrCircKind eObjKind = maFillData.IsFilled() ? SdrCircKind::Section : SdrCircKind::Arc;
SdrObjectUniquePtr xSdrObj(
new SdrCircObj(
*GetDoc().GetDrawLayer(),