diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-09-03 20:39:27 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-09-06 12:12:31 +0200 |
commit | aaa5ed55b1c66888ad62951baaa2559d0f1bff87 (patch) | |
tree | 21e85c5752e09966699f5ec9ca1a1a60c8a79bcd /sw | |
parent | bce2c9d473dde0114d81d15a6fb217ae71669092 (diff) |
No need to differentiate between 1 and 2: only !=0 matters
Change-Id: I981472a0b33c6f35f87d891fc7b70c92e621bf95
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 ); } /* |