diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-08-14 18:44:36 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-08-14 18:44:36 +0000 |
commit | 52863b2d654f79af0bb9d4fac762137979e5047a (patch) | |
tree | 689b13ab9bff611ae03960330d1a21009ee0d0a7 /sw/source/ui/wrtsh | |
parent | 95149062eb9a6e0f2628068bc9bf923c581ed266 (diff) |
INTEGRATION: CWS tl58 (1.21.186); FILE MERGED
2008/08/06 10:11:36 od 1.21.186.1: #i92468# Deletion of previous respectively next word
- perform former (before fix for issue i72162) code for deletion
of previous respectively next word.
Diffstat (limited to 'sw/source/ui/wrtsh')
-rw-r--r-- | sw/source/ui/wrtsh/delete.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sw/source/ui/wrtsh/delete.cxx b/sw/source/ui/wrtsh/delete.cxx index 3406a3107e99..30536bf1fec8 100644 --- a/sw/source/ui/wrtsh/delete.cxx +++ b/sw/source/ui/wrtsh/delete.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: delete.cxx,v $ - * $Revision: 1.21 $ + * $Revision: 1.22 $ * * This file is part of OpenOffice.org. * @@ -513,9 +513,9 @@ long SwWrtShell::DelNxtWord() EnterStdMode(); SetMark(); if(IsEndWrd() && !IsSttWrd()) - _NxtWrd(); + _NxtWrdForDelete(); // --> OD 2008-08-06 #i92468# if(IsSttWrd() || IsEndPara()) - _NxtWrd(); + _NxtWrdForDelete(); // --> OD 2008-08-06 #i92468# else _EndWrd(); @@ -538,11 +538,12 @@ long SwWrtShell::DelPrvWord() ResetCursorStack(); EnterStdMode(); SetMark(); - if( !IsSttWrd() || !_PrvWrd() ) + if ( !IsSttWrd() || + !_PrvWrdForDelete() ) // --> OD 2008-08-06 #i92468# { if( IsEndWrd() ) { - if( _PrvWrd() ) + if ( _PrvWrdForDelete() ) // --> OD 2008-08-06 #i92468# { // skip over all-1 spaces short n = -1; @@ -554,7 +555,7 @@ long SwWrtShell::DelPrvWord() } } else if( IsSttPara()) - _PrvWrd(); + _PrvWrdForDelete(); // --> OD 2008-08-06 #i92468# else _SttWrd(); } |