[Libreoffice-commits] dictionaries.git: hu_HU/Lightproof.py pt_BR/Lightproof.py ru_RU/Lightproof.py
Michael Stahl
mstahl at redhat.com
Fri May 22 04:03:07 PDT 2015
hu_HU/Lightproof.py | 2 +-
pt_BR/Lightproof.py | 2 +-
ru_RU/Lightproof.py | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
New commits:
commit cdb3172a438c7c56c4700edf7d771ede5cdf3402
Author: Michael Stahl <mstahl at redhat.com>
Date: Fri May 22 12:55:39 2015 +0200
Lightproof: do not return invalid nBehindEndOfSentencePosition
Copy bugfix to localized Lightproof.py
Change-Id: I7a27492a26e3bd18ba2c6a4a299039c2ded38e53
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]
diff --git a/pt_BR/Lightproof.py b/pt_BR/Lightproof.py
index 44f6934..8064fee 100644
--- a/pt_BR/Lightproof.py
+++ b/pt_BR/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]
diff --git a/ru_RU/Lightproof.py b/ru_RU/Lightproof.py
index 4af25f8..198b762 100644
--- a/ru_RU/Lightproof.py
+++ b/ru_RU/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]
More information about the Libreoffice-commits
mailing list