Author: arielch
Date: Sun Apr  7 23:25:57 2013
New Revision: 1465509

URL: http://svn.apache.org/r1465509
Log:
i119421 - Use the right comparison operator

Modified:
    openoffice/trunk/main/sw/source/core/edit/edlingu.cxx

Modified: openoffice/trunk/main/sw/source/core/edit/edlingu.cxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/sw/source/core/edit/edlingu.cxx?rev=1465509&r1=1465508&r2=1465509&view=diff
==============================================================================
--- openoffice/trunk/main/sw/source/core/edit/edlingu.cxx (original)
+++ openoffice/trunk/main/sw/source/core/edit/edlingu.cxx Sun Apr  7 23:25:57 
2013
@@ -1181,7 +1181,7 @@ bool SwEditShell::GetGrammarCorrection( 
                     // return suggestions for first error that includes the 
given error position
                     const linguistic2::SingleProofreadingError &rError = 
rResult.aErrors[i];
                     if( (rError.nErrorStart <= rErrorPosInText) &&
-                        (rErrorPosInText + nLen < rError.nErrorStart + 
rError.nErrorLength))
+                        (rErrorPosInText + nLen <= rError.nErrorStart + 
rError.nErrorLength))
                     {
                         rSuggestions = rError.aSuggestions;
                         rErrorIndexInResult = i;


Reply via email to