[ooo-build-commit] .: Branch 'ooo-build-3-2-1' - patches/dev300
René Engelhard
rene at kemper.freedesktop.org
Wed Jul 28 14:05:33 PDT 2010
patches/dev300/apply | 2
patches/dev300/editeng.dont-freeze-in-autocorr.diff | 46 ++++++++++++++++++++
2 files changed, 48 insertions(+)
New commits:
commit e68b7f97e6315770d47714087a864e3efec00a58
Author: Rene Engelhard <rene at debian.org>
Date: Wed Jul 28 16:23:34 2010 +0200
fix i#i113461
* patches/dev300/apply:
* patches/dev300/editeng.dont-freeze-in-autocorr.diff:
diff --git a/patches/dev300/apply b/patches/dev300/apply
index 4d23451..bb843ef 100644
--- a/patches/dev300/apply
+++ b/patches/dev300/apply
@@ -2680,6 +2680,8 @@ autocorrect-accidental-caps-lock-vcl.diff
cws-cbosdo01.diff, cbosdo
# Additionnal fix which didn't go into cbosdo01 (CWS: cbosdo05)
remove-bad-nbsp.diff, cbosdo
+# one more fix
+editeng.dont-freeze-in-autocorr.diff, i#113461
# Fancy document modified status window
statusbar-fancy-modified-status-sc.diff, i#103862, kohei
diff --git a/patches/dev300/editeng.dont-freeze-in-autocorr.diff b/patches/dev300/editeng.dont-freeze-in-autocorr.diff
new file mode 100644
index 0000000..b152b05
--- /dev/null
+++ b/patches/dev300/editeng.dont-freeze-in-autocorr.diff
@@ -0,0 +1,46 @@
+# HG changeset patch
+# Parent f08e0746219b133571e5903b94a77d2fe71b7db1
+#i113461# do not freeze after erasing non-breaking space inserted by French AutoCorrection
+
+diff -r f08e0746219b -r 80209fb60358 editeng/source/misc/svxacorr.cxx
+--- svx/source/editeng/svxacorr.cxx Wed Jul 28 13:18:57 2010 +0200
++++ svx/source/editeng/svxacorr.cxx Wed Jul 28 13:19:27 2010 +0200
+@@ -1243,27 +1243,25 @@
+ else if ( bIsNextRun && !IsAutoCorrectChar( cChar ) )
+ {
+ // Remove the NBSP if it wasn't an autocorrection
+- if ( NeedsHardspaceAutocorr( rTxt.GetChar( nInsPos - 1 ) ) &&
++ if ( nInsPos != 0 && NeedsHardspaceAutocorr( rTxt.GetChar( nInsPos - 1 ) ) &&
+ cChar != ' ' && cChar != '\t' && cChar != CHAR_HARDBLANK )
+ {
+ // Look for the last HARD_SPACE
+ xub_StrLen nPos = nInsPos - 1;
+- bool bFound = false;
+- while ( nPos != STRING_NOTFOUND && !bFound )
++ bool bContinue = true;
++ while ( bContinue )
+ {
+- sal_Unicode cTmpChar = rTxt.GetChar( nPos );
++ const sal_Unicode cTmpChar = rTxt.GetChar( nPos );
+ if ( cTmpChar == CHAR_HARDBLANK )
+- bFound = true;
+- else if ( !NeedsHardspaceAutocorr( cTmpChar ) )
+- nPos = STRING_NOTFOUND;
++ {
++ rDoc.Delete( nPos, nPos + 1 );
++ nRet = AddNonBrkSpace;
++ bContinue = false;
++ }
++ else if ( !NeedsHardspaceAutocorr( cTmpChar ) || nPos == 0 )
++ bContinue = false;
+ nPos--;
+ }
+-
+- if ( bFound && nPos != STRING_NOTFOUND )
+- {
+- rDoc.Delete( nPos + 1, nPos + 2 );
+- nRet = AddNonBrkSpace;
+- }
+ }
+ }
+ }
More information about the ooo-build-commit
mailing list