I was playing around a bit with the ThisComponent.CurrentSelection.getCount() function and I found that when I had one selection, ThisComponent.CurrentSelection.getCount() returned 1, but when I had more than one selection (and I am still talking about Writer), ThisComponent.CurrentSelection.getCount() returned the number of selections + 1 for some reason. In the same case, ThisComponent.CurrentSelection(0).getText() returns an empty string. ThisComponent.CurrentSelection(1).getText() and ThisComponent.CurrentSelection(2).getText() contains what's selected, however.
Is this what always happens or did I do something wrong? I tried it a few times only. Do I have to check for this or can I just assume that if ThisComponent.CurrentSelection.getCount() > 1 then ThisComponent.CurrentSelection(0).getText() is always empty? Johnny Andersson
