diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-19 14:31:46 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-22 08:24:48 +0200 |
commit | 2309217a55c8d5e6bdde2a6d4775f10415505fcd (patch) | |
tree | 3d6be2306ba94eca297007152c4f53775929a358 /svx/source/svdraw/svdmrkv.cxx | |
parent | e382aa144561dab9295b17c4d5b29d4bd33ad687 (diff) |
convert SdrViewEditMode to scoped enum
Change-Id: I1f58efceaee7346187f92c7ebaf901abc305ac33
Diffstat (limited to 'svx/source/svdraw/svdmrkv.cxx')
-rw-r--r-- | svx/source/svdraw/svdmrkv.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx index 7f19a67b7dce..4cceb5143729 100644 --- a/svx/source/svdraw/svdmrkv.cxx +++ b/svx/source/svdraw/svdmrkv.cxx @@ -129,8 +129,8 @@ void ImplMarkingOverlay::SetSecondPosition(const basegfx::B2DPoint& rNewPosition void SdrMarkView::ImpClearVars() { meDragMode=SdrDragMode::Move; - meEditMode=SDREDITMODE_EDIT; - meEditMode0=SDREDITMODE_EDIT; + meEditMode=SdrViewEditMode::Edit; + meEditMode0=SdrViewEditMode::Edit; mbDesignMode=false; mpMarkedObj=nullptr; mpMarkedPV=nullptr; @@ -1336,11 +1336,11 @@ void SdrMarkView::SetFrameHandles(bool bOn) void SdrMarkView::SetEditMode(SdrViewEditMode eMode) { if (eMode!=meEditMode) { - bool bGlue0=meEditMode==SDREDITMODE_GLUEPOINTEDIT; + bool bGlue0=meEditMode==SdrViewEditMode::GluePointEdit; bool bEdge0=static_cast<SdrCreateView*>(this)->IsEdgeTool(); meEditMode0=meEditMode; meEditMode=eMode; - bool bGlue1=meEditMode==SDREDITMODE_GLUEPOINTEDIT; + bool bGlue1=meEditMode==SdrViewEditMode::GluePointEdit; bool bEdge1=static_cast<SdrCreateView*>(this)->IsEdgeTool(); // avoid flickering when switching between GlueEdit and EdgeTool if (bGlue1 && !bGlue0) ImpSetGlueVisible2(bGlue1); |