From cdb3172a438c7c56c4700edf7d771ede5cdf3402 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Fri, 22 May 2015 12:55:39 +0200 Subject: Lightproof: do not return invalid nBehindEndOfSentencePosition Copy bugfix to localized Lightproof.py Change-Id: I7a27492a26e3bd18ba2c6a4a299039c2ded38e53 --- hu_HU/Lightproof.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hu_HU') diff --git a/hu_HU/Lightproof.py b/hu_HU/Lightproof.py index e5936b8..daeddeb 100644 --- a/hu_HU/Lightproof.py +++ b/hu_HU/Lightproof.py @@ -122,7 +122,7 @@ class Lightproof( unohelper.Base, XProofreader, XServiceInfo, XServiceName, XSer if 'PYUNO_LOGLEVEL' in os.environ: print(traceback.format_exc()) - l = rText[nSuggestedSentenceEndPos:nSuggestedSentenceEndPos+1] + l = rText[aRes.nStartOfNextSentencePosition:aRes.nStartOfNextSentencePosition+1] while l == " ": aRes.nStartOfNextSentencePosition = aRes.nStartOfNextSentencePosition + 1 l = rText[aRes.nStartOfNextSentencePosition:aRes.nStartOfNextSentencePosition+1] -- cgit