diff options
Diffstat (limited to 'chart2/source/controller/main/ChartController_Window.cxx')
-rw-r--r-- | chart2/source/controller/main/ChartController_Window.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chart2/source/controller/main/ChartController_Window.cxx b/chart2/source/controller/main/ChartController_Window.cxx index d28252d4603f..9422892ce88c 100644 --- a/chart2/source/controller/main/ChartController_Window.cxx +++ b/chart2/source/controller/main/ChartController_Window.cxx @@ -675,11 +675,11 @@ void ChartController::execute_MouseButtonDown( const MouseEvent& rMEvt ) if(pHitSelectionHdl) { SdrHdlKind eKind = pHitSelectionHdl->GetKind(); - if( eKind==HDL_UPPER || eKind==HDL_LOWER ) + if( eKind==SdrHdlKind::Upper || eKind==SdrHdlKind::Lower ) eRotationDirection = DragMethod_RotateDiagram::ROTATIONDIRECTION_X; - else if( eKind==HDL_LEFT || eKind==HDL_RIGHT ) + else if( eKind==SdrHdlKind::Left || eKind==SdrHdlKind::Right ) eRotationDirection = DragMethod_RotateDiagram::ROTATIONDIRECTION_Y; - else if( eKind==HDL_UPLFT || eKind==HDL_UPRGT || eKind==HDL_LWLFT || eKind==HDL_LWRGT ) + else if( eKind==SdrHdlKind::UpperLeft || eKind==SdrHdlKind::UpperRight || eKind==SdrHdlKind::LowerLeft || eKind==SdrHdlKind::LowerRight ) eRotationDirection = DragMethod_RotateDiagram::ROTATIONDIRECTION_Z; } pDragMethod = new DragMethod_RotateDiagram( *pDrawViewWrapper, m_aSelection.getSelectedCID(), getModel(), eRotationDirection ); |