diff options
author | Andreas Martens <ama@openoffice.org> | 2002-02-20 14:06:36 +0000 |
---|---|---|
committer | Andreas Martens <ama@openoffice.org> | 2002-02-20 14:06:36 +0000 |
commit | 7f4f82b3f97225fb35fa99f9bc9d60ab833c1175 (patch) | |
tree | d9da5384db0845ea6ada43e45fc35bf8cefec061 | |
parent | d1fe263c92a875e92cacf318319169daf2549f5d (diff) |
Fix: The previous word depends on the locale of the previous character
-rw-r--r-- | sw/source/core/crsr/swcrsr.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sw/source/core/crsr/swcrsr.cxx b/sw/source/core/crsr/swcrsr.cxx index c10e02dac92a..14bccb47ee59 100644 --- a/sw/source/core/crsr/swcrsr.cxx +++ b/sw/source/core/crsr/swcrsr.cxx @@ -2,9 +2,9 @@ * * $RCSfile: swcrsr.cxx,v $ * - * $Revision: 1.17 $ + * $Revision: 1.18 $ * - * last change: $Author: jp $ $Date: 2002-02-14 12:44:42 $ + * last change: $Author: ama $ $Date: 2002-02-20 15:06:36 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1237,9 +1237,11 @@ FASTBOOL SwCursor::GoPrevWord() { SwCrsrSaveState aSave( *this ); xub_StrLen nPtPos = GetPoint()->nContent.GetIndex(); + if( nPtPos ) + --nPtPos; nPtPos = (xub_StrLen)pBreakIt->xBreak->previousWord( pTxtNd->GetTxt(), nPtPos, - pBreakIt->GetLocale( pTxtNd->GetLang( nPtPos ) ), + pBreakIt->GetLocale( pTxtNd->GetLang( nPtPos, 1 ) ), WordType::ANYWORD_IGNOREWHITESPACES ).startPos; if( 0 <= nPtPos && nPtPos < pTxtNd->GetTxt().Len() ) |