summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <s.mehrbrodt@gmail.com>2013-11-01 10:49:03 +0100
committerBjörn Michaelsen <bjoern.michaelsen@canonical.com>2013-11-14 12:10:25 +0000
commit083114bb132b879cfb899361ece375c8580ae505 (patch)
treec46ca1d8fde8f02af8b86511581446c7ddb50498
parenta9a197d9e23c3494047af8e7c377a90b3ca12fef (diff)
fdo#63819 Ctrl+Backspace also deletes the space before the word
Change-Id: I147e8632c36ac0755a539d89ea5d34207839ea7c Reviewed-on: https://gerrit.libreoffice.org/6518 Reviewed-by: Andrzej J.R. Hunt <andrzej@ahunt.org> Tested-by: Andrzej J.R. Hunt <andrzej@ahunt.org> Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
-rw-r--r--sw/source/ui/wrtsh/delete.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/wrtsh/delete.cxx b/sw/source/ui/wrtsh/delete.cxx
index 79a948480c74..efd11fac7b2b 100644
--- a/sw/source/ui/wrtsh/delete.cxx
+++ b/sw/source/ui/wrtsh/delete.cxx
@@ -521,8 +521,8 @@ long SwWrtShell::DelPrvWord()
{
if ( _PrvWrdForDelete() ) // #i92468#
{
- // skip over all-1 spaces
- short n = -1;
+ // skip over all spaces
+ short n = 0;
while( ' ' == GetChar( sal_False, n ))
--n;