[pyatspi2/gnome-3-20] getText: Don't modify endOffset
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pyatspi2/gnome-3-20] getText: Don't modify endOffset
- Date: Thu, 31 Mar 2016 19:42:23 +0000 (UTC)
commit 5009bd967b066a1899abd7d88fca0459b7496289
Author: Mike Gorse <mgorse suse com>
Date: Thu Mar 31 13:01:10 2016 -0500
getText: Don't modify endOffset
I'm not sure why this was being done in the first place, and it causes
odd behavior if startoffset and endOffset are both 0.
https://bugzilla.gnome.org/show_bug.cgi?id=721860
pyatspi/text.py | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/pyatspi/text.py b/pyatspi/text.py
index 434d2d7..0cdff67 100644
--- a/pyatspi/text.py
+++ b/pyatspi/text.py
@@ -406,8 +406,6 @@ class Text(interface):
startOffset (inclusive) up to but not including the character
at endOffset.
"""
- if not endOffset:
- endOffset = -1
return Atspi.Text.get_text(self.obj, startOffset, endOffset)
def getTextAfterOffset(self, offset, type):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]