AccessibleText_getTextAtOffset returns wrong values in gnome-terminal
Submitted by Dana Ormenisan
Link to original bug (#156161)
Description
AccessibleText_getTextAtOffset (called with the current offset and with SPI_TEXT_BOUNDARY_WORD_END) returns wrong values:
-
In the lines containing the prompt, AccessibleText_getTextAtOffset returns a wrong value for endOffset. This value is the same as for startOffset (startOffset is correctly reported). As a consequence, the returned string is allways empty.
-
In the lines which doesn't conatain the prompt following problems appears: word1
<space>``<space>
word2 (the start offset is 0). If AccessibleText_getTextAtOffset is called with offset 0, the correct values are reported: startOffset = 0 endOffset = 7 text = word1 If AccessibleText_getTextAtOffset is called with offset 7 (the endOffset of the previous word), the wrong values are reported: startOffset = 0 endOffset = 7 text = word1
This problems are the cause of gnopernicus bug # 155732.
Version: 0.11.x
Resolution: RESOLVED FIXED