diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-31 07:26:39 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-31 07:28:06 +0200 |
commit | 72ce1368b504804529bbcdc14484e9abb2ffa398 (patch) | |
tree | 36381873f229041592c11ec8564edc60e0fc3ec3 /starmath | |
parent | 7eb519e92b4b50546f222e8d0219b21af8e6ea18 (diff) |
convert COMMAND_WHEEL constants to an enum
Change-Id: I413d821a984ab556bd19c52704c04de6d828f699
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/edit.cxx | 2 | ||||
-rw-r--r-- | starmath/source/view.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx index f7a751a7b743..672a7757eca5 100644 --- a/starmath/source/edit.cxx +++ b/starmath/source/edit.cxx @@ -382,7 +382,7 @@ bool SmEditWindow::HandleWheelCommands( const CommandEvent &rCEvt ) const CommandWheelData* pWData = rCEvt.GetWheelData(); if (pWData) { - if (COMMAND_WHEEL_ZOOM == pWData->GetMode()) + if (CommandWheelMode::ZOOM == pWData->GetMode()) bCommandHandled = true; // no zooming in Command window else bCommandHandled = HandleScrollCommand( rCEvt, pHScrollBar, pVScrollBar); diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index e77f20933cc1..5cdc2103e237 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -581,7 +581,7 @@ void SmGraphicWindow::Command(const CommandEvent& rCEvt) case COMMAND_WHEEL: { const CommandWheelData* pWData = rCEvt.GetWheelData(); - if ( pWData && COMMAND_WHEEL_ZOOM == pWData->GetMode() ) + if ( pWData && CommandWheelMode::ZOOM == pWData->GetMode() ) { sal_uInt16 nTmpZoom = GetZoom(); if( 0L > pWData->GetDelta() ) |