Kaydet (Commit) aaa5ed55 authored tarafından Matteo Casalin's avatar Matteo Casalin

No need to differentiate between 1 and 2: only !=0 matters

Change-Id: I981472a0b33c6f35f87d891fc7b70c92e621bf95
üst bce2c9d4
...@@ -651,16 +651,8 @@ bool SwTxtFrm::_GetCrsrOfst(SwPosition* pPos, const Point& rPoint, ...@@ -651,16 +651,8 @@ bool SwTxtFrm::_GetCrsrOfst(SwPosition* pPos, const Point& rPoint,
bool SwTxtFrm::GetCrsrOfst(SwPosition* pPos, Point& rPoint, bool SwTxtFrm::GetCrsrOfst(SwPosition* pPos, Point& rPoint,
SwCrsrMoveState* pCMS, bool ) const SwCrsrMoveState* pCMS, bool ) const
{ {
sal_uInt16 nChgFrm = 2; const bool bChgFrm = !(pCMS && MV_UPDOWN == pCMS->eState);
if( pCMS ) return _GetCrsrOfst( pPos, rPoint, bChgFrm, 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 );
} }
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment