Apache OpenOffice (AOO) Bugzilla – Issue 23397
API: sw.SwXTextCursor::XWordCursor
Last modified: 2013-02-24 21:07:25 UTC
The method isEndOfWord returns false eventhough gotoEndOfWord was called previously. Just execute the following macro to reproduce the behaviour. oDoc = ThisComponent oText = oDoc.Text oCursor = oText.createTextCursor() for i=0 to 3 oText.insertString(oCursor, "" + (3 - i), false) for j=0 to 5 oText.insertString(oCursor, "XTextCursor,XTextCursor", false) oText.insertString(oCursor, "The quick brown fox ", false) oText.insertString(oCursor, "jumps over the lazy dog ", false) next oText.insertControlCharacter(oCursor, com.sun.star.text.ControlCharacter.PARAGRAPH_BREAK, false) oText.insertControlCharacter(oCursor, com.sun.star.text.ControlCharacter.LINE_BREAK, false) next print "StartOfWord " + oCursor.gotoStartOfWord(false) print "EndOfWord " + oCursor.gotoEndOfWord(false) print "isEndOfWord "+oCursor.isEndOfWord()
.
When testing this one #i24098# (similiar issue with sentences fixed in CWS i18n11) should best be tested also.
Fixed in CWS tleamisc. Files changed: offapi: - XWordCursor.idl 1.8.6.1 sw: - unoobj.cxx 1.74.26.3 Note: XSentenceCursor and XParagraphCursor should be changed similarly.
OK in CWS tleamisc.
SW->TL: isEndOfWord still returns false
TL->SW: Because it is located in an empty paragraph...
fixed in cws_tleamisc
works as expected in cws_tleamisc => verified
ok in src680_m52 => closed