diff options
author | Frank Meies <fme@openoffice.org> | 2001-08-14 13:43:53 +0000 |
---|---|---|
committer | Frank Meies <fme@openoffice.org> | 2001-08-14 13:43:53 +0000 |
commit | ce50c718087b227dd91ca4af6deb3be7a367fbc1 (patch) | |
tree | ac57c93876ecf9c9e45f1dd2cf418ba465975349 | |
parent | 9ca63a0ef8f7bc121015eb792af8226317196103 (diff) |
Fix #91028#: Finding next misspelled word when AutoSpellcheck is enabled
-rw-r--r-- | sw/source/core/txtnode/txtedt.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sw/source/core/txtnode/txtedt.cxx b/sw/source/core/txtnode/txtedt.cxx index c8ca3e63be..2c51c9ea83 100644 --- a/sw/source/core/txtnode/txtedt.cxx +++ b/sw/source/core/txtnode/txtedt.cxx @@ -2,9 +2,9 @@ * * $RCSfile: txtedt.cxx,v $ * - * $Revision: 1.16 $ + * $Revision: 1.17 $ * - * last change: $Author: fme $ $Date: 2001-07-06 15:22:55 $ + * last change: $Author: fme $ $Date: 2001-08-14 14:43:53 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -535,12 +535,17 @@ BOOL SwScanner::NextWord( LanguageType aLang ) if( pWrong ) { + xub_StrLen nOldBegin = nBegin; nBegin = bReverse ? pWrong->LastWrong( nBegin ) : pWrong->NextWrong( nBegin ); if( STRING_LEN == nBegin ) return FALSE; - } + // if we jumped over a range marked as valid, we have to adjust + // the word boundaries + if ( nBegin != nOldBegin ) + bStart = TRUE; + } Boundary aBound; if( bStart ) |