From 3be54ca581f6e1c43274495ba1e943e17f99eef5 Mon Sep 17 00:00:00 2001
From: Janit Anjaria <janit92@gmail.com>
Date: Mon, 8 Apr 2013 22:25:25 +0530
Subject: [PATCH] fdo#42893 Improve 'Capitalize first letter of sentence'

I made code changes in the file svxacorr.cxx and what i did was that i traversed the string by using *pStr(which points to the end of the string) and henc echecked if second last character is a '.' ,in that case return False.
---
 editeng/source/misc/svxacorr.cxx |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index 50c5b02..50643d4 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -915,6 +915,20 @@ sal_Bool SvxAutoCorrect::FnCptlSttSntnc( SvxAutoCorrDoc& rDoc,
     if( 2 > ( pStr - pStart ) )
         return sal_False;
 
+	while(*pStr!='.')
+        {
+                pStr--;
+        }
+
+                if(*(pStr-2)=='.')
+                {
+                        return sal_False;
+                }
+                else
+                {
+                        return sal_True;
+                }
+
     if( !rCC.isLetterNumeric(
             aText, sal::static_int_cast< xub_StrLen >( pStr-- - pStart ) ) )
     {
-- 
1.7.10.4

