editeng/source/misc/svxacorr.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit ebb867f2b7d268eba5f39d387713fc2dac99a06d Author: Laurent Balland-Poirier <laurent.balland-poir...@laposte.net> Date: Thu Oct 10 20:16:07 2013 +0200 fdo#69762 Scientific number AutoCorrect as ordinal In French, ordinal number autocorrection transforms 2e-3 in 2^e-3 which is annoying in Calc. This patch avoids autocorrection with [digit][e|E]- Reviewed-on: https://gerrit.libreoffice.org/6204 Reviewed-by: Eike Rathke <er...@redhat.com> Tested-by: Eike Rathke <er...@redhat.com> (cherry picked from commit 938881340e9203d3b265596b8c7359bb27560912) Backported. Change-Id: Iaaff4f8d6e667fc84a68d7c11e1a96da13594a18 Signed-off-by: Eike Rathke <er...@redhat.com> diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index 9e3b325..cc61b5e 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -1376,6 +1376,9 @@ SvxAutoCorrect::DoAutoCorrect( SvxAutoCorrDoc& rDoc, const String& rTxt, } if( ( IsAutoCorrFlag( nRet = ChgOrdinalNumber ) && + (nInsPos >= 2 ) && // fdo#69762 avoid autocorrect for 2e-3 + ( '-' != cChar || 'E' != toupper(rTxt.GetChar(nInsPos-1)) || + '0' > rTxt.GetChar(nInsPos-2) || '9' < rTxt.GetChar(nInsPos-2) ) && FnChgOrdinalNumber( rDoc, rTxt, nCapLttrPos, nInsPos, eLang ) ) || ( IsAutoCorrFlag( nRet = SetINetAttr ) && ( ' ' == cChar || '\t' == cChar || 0x0a == cChar || !cChar ) && _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits