summaryrefslogtreecommitdiff
path: root/sw/source/core/edit
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/edit')
-rw-r--r--sw/source/core/edit/acorrect.cxx7
-rw-r--r--sw/source/core/edit/autofmt.cxx8
2 files changed, 7 insertions, 8 deletions
diff --git a/sw/source/core/edit/acorrect.cxx b/sw/source/core/edit/acorrect.cxx
index f68185108af3..ae9996211873 100644
--- a/sw/source/core/edit/acorrect.cxx
+++ b/sw/source/core/edit/acorrect.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: acorrect.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: jp $ $Date: 2000-10-18 11:54:58 $
+ * last change: $Author: jp $ $Date: 2000-10-25 15:32:18 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -71,9 +71,6 @@
#include <hintids.hxx>
#endif
-#ifndef _WORDSEL_HXX
-#include <svtools/wordsel.hxx>
-#endif
#ifndef _OFF_APP_HXX //autogen
#include <offmgr/app.hxx>
#endif
diff --git a/sw/source/core/edit/autofmt.cxx b/sw/source/core/edit/autofmt.cxx
index 48c1c0eeda88..3ab3700eee11 100644
--- a/sw/source/core/edit/autofmt.cxx
+++ b/sw/source/core/edit/autofmt.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: autofmt.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: jp $ $Date: 2000-10-20 11:11:01 $
+ * last change: $Author: jp $ $Date: 2000-10-25 15:32:18 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1964,6 +1964,8 @@ void SwAutoFormat::AutoCorrect( xub_StrLen nPos )
BOOL bFirst = aFlags.bCptlSttSntnc, bFirstSent = bFirst;
sal_Unicode cChar;
+ CharClass& rAppCC = GetAppCharClass();
+
do {
while( nPos < pTxt->Len() && IsSpace( cChar = pTxt->GetChar( nPos ) ))
++nPos;
@@ -2111,7 +2113,7 @@ void SwAutoFormat::AutoCorrect( xub_StrLen nPos )
//alle Wortrenner loesen die Autokorrektur aus!
// case ' ':
// case '\t':
- if( !WordSelection::IsNormalChar( cChar ))
+ if( !rAppCC.isLetterNumeric( *pTxt, nPos ))
{
--nPos; // ++nPos von dem for ungueltig machen !
++bBreak;