diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-07-31 16:54:48 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2015-08-04 06:28:15 +0000 |
commit | 8eca4da70506e1e6c2e4b600262cced93aba8c96 (patch) | |
tree | d8c4158af8263b94ee48b4fad5daf50c755e4938 | |
parent | a933e01a54f08132c2d8699f7c6851a8b493d5dc (diff) |
tdf#89154 stop at paragraph end when using CTRL+Right (or Left)
Change-Id: I7f6bec0dbf7637b701d4dda7c573b118532b4707
Reviewed-on: https://gerrit.libreoffice.org/17484
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
-rw-r--r-- | sw/source/core/crsr/swcrsr.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/wrtsh/wrtsh4.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/crsr/swcrsr.cxx b/sw/source/core/crsr/swcrsr.cxx index db22a2709fe4..54016c1d9345 100644 --- a/sw/source/core/crsr/swcrsr.cxx +++ b/sw/source/core/crsr/swcrsr.cxx @@ -1294,7 +1294,7 @@ bool SwCursor::GoNextWordWT( sal_Int16 nWordType ) g_pBreakIt->GetLocale( pTextNd->GetLang( nPtPos, 1 ) ), nWordType ).startPos; - if (nPtPos < pTextNd->GetText().getLength() && nPtPos >= 0) + if (nPtPos <= pTextNd->GetText().getLength() && nPtPos >= 0) { GetPoint()->nContent = nPtPos; if( !IsSelOvr() ) diff --git a/sw/source/uibase/wrtsh/wrtsh4.cxx b/sw/source/uibase/wrtsh/wrtsh4.cxx index 40c92d15343c..8d6849dd553c 100644 --- a/sw/source/uibase/wrtsh/wrtsh4.cxx +++ b/sw/source/uibase/wrtsh/wrtsh4.cxx @@ -106,7 +106,7 @@ bool SwWrtShell::_PrvWrd() Pop( false ); return bRet; } - bRet = IsStartWord(); + bRet = IsStartWord() || IsEndPara(); } Push(); ClearMark(); |