diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/text/frmcrsr.cxx | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/sw/source/core/text/frmcrsr.cxx b/sw/source/core/text/frmcrsr.cxx index 93c9ea1f4cab..e1b771d4446e 100644 --- a/sw/source/core/text/frmcrsr.cxx +++ b/sw/source/core/text/frmcrsr.cxx @@ -651,16 +651,8 @@ bool SwTxtFrm::_GetCrsrOfst(SwPosition* pPos, const Point& rPoint, bool SwTxtFrm::GetCrsrOfst(SwPosition* pPos, Point& rPoint, SwCrsrMoveState* pCMS, bool ) const { - sal_uInt16 nChgFrm = 2; - if( pCMS ) - { - if( MV_UPDOWN == pCMS->eState ) - nChgFrm = 0; - else if( MV_SETONLYTEXT == pCMS->eState || - MV_TBLSEL == pCMS->eState ) - nChgFrm = 1; - } - return _GetCrsrOfst( pPos, rPoint, nChgFrm != 0, pCMS ); + const bool bChgFrm = !(pCMS && MV_UPDOWN == pCMS->eState); + return _GetCrsrOfst( pPos, rPoint, bChgFrm, pCMS ); } /* |