GNOME Bugzilla – Bug 721860
pyatspi2 should not modify the end offset in getText()
Last modified: 2016-04-01 01:33:36 UTC
At https://git.gnome.org/browse/pyatspi2/tree/pyatspi/text.py#n407: if not endOffset: endOffset = -1 As a result, one finds things like: https://bugzilla.mozilla.org/show_bug.cgi?id=957306 Oops.
[Moving at-spi/pyatspi2 bugs to separate product. See bug 740075]
Given the POLS, I would have expected getText() to pass its arguments on as is to atk_text_get_text(), and leave it up to atk_text_get_text() to return an empty string (NULL) if the arguments aren't to its liking. It looks as though those two lines should just go away...
Yeah, I'm not sure why that code was there, and I don't see any harm in removing it. I've taken out those two lines of code. Also, I apologize for taking so long to fix this--I'd added it to my to-do list and then forgotten about it. mnaster: 8f457b gnome-3-20: 5009bd