Apache OpenOffice (AOO) Bugzilla – Issue 25033
API: SwXBodyText::XSimpleText::insertString
Last modified: 2013-02-24 21:06:36 UTC
If the cursor if spanned this method inserts at the start of the TextRange instead of it's end as specified. myText = ThisComponent.Text myText.setString("Look at this") myCursor = myText.createTextCursor myCursor.goRight(1,false) 'print "*"+myCursor.getString+"*" myText.insertString(myCursor, "AAAAA", false) inserts the Text AAAAA behind the 'L' of 'Look' and myText = ThisComponent.Text myText.setString("Look at this") myCursor = myText.createTextCursor myCursor.goRight(1,true) 'print "*"+myCursor.getString+"*" myText.insertString(myCursor, "AAAAA", false) inserts the Text AAAAA infront of the 'L' of 'Look'. This also effects the method 'insertControlCharacter' of this Interface.
I am not sure whether we really can change this implmentation. The defective behaviour will be used by oodles of applications. At least we have to talk about it.
.
Sw: changed prio
SW: changed target