https://issues.apache.org/ooo/show_bug.cgi?id=122190
Bug ID: 122190
Issue Type: DEFECT
Summary: Function getCurrentController.select() not selected
all occurences of collection
Classification: Application
Product: Writer
Version: AOO 3.4.1
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: programming
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Try the following:
- create a new empty writer-document
- place a text: text text text text
- run the following Basic code:
oDesc = ThisComponent.createReplaceDescriptor()
oDesc.SearchString = "text" ' find for string "text"
oFoundAll = ThisComponent.findAll(oDesc) ' find all occurences
msgbox oFoundAll.count ' get 4 occurences
ThisComponent.getCurrentController.select(oFoundAll()) ' select all occurences
' You'll see there's only 3 occurences of collection oFoundAll is selected,
' the cursor is placed on end of first occurence of "text" string, without
highlight
This behaviour has several unnatural consequenses:
1. the clipboard/transferable-content will not be the same if one tries to work
with it after performing a selection
2. more complicated and causing uncertainty in the mass processing of selected
texts
This issue occurs with OOo 3.4.1., with OOo 3.2.0 works good.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.