Author: hdu
Date: Fri Dec 7 15:53:35 2012
New Revision: 1418366
URL: http://svn.apache.org/viewvc?rev=1418366&view=rev
Log:
#i121447# fix SwAccessibleParagraph::GetGlyphBoundary()'s return value
Modified:
openoffice/trunk/main/sw/source/core/access/accpara.cxx
Modified: openoffice/trunk/main/sw/source/core/access/accpara.cxx
URL:
http://svn.apache.org/viewvc/openoffice/trunk/main/sw/source/core/access/accpara.cxx?rev=1418366&r1=1418365&r2=1418366&view=diff
==============================================================================
--- openoffice/trunk/main/sw/source/core/access/accpara.cxx (original)
+++ openoffice/trunk/main/sw/source/core/access/accpara.cxx Fri Dec 7 15:53:35
2012
@@ -758,6 +758,7 @@ sal_Bool SwAccessibleParagraph::GetGlyph
rBound.startPos = pBreakIt->GetBreakIter()->previousCharacters(
rText, rBound.endPos, aLocale, nIterMode, 1, nDone );
+ bRet = ((rBound.startPos <= nPos) && (nPos <= rBound.endPos));
DBG_ASSERT( rBound.startPos <= nPos, "start pos too high" );
DBG_ASSERT( rBound.endPos >= nPos, "end pos too low" );
}