To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=76449





------- Additional comments from [EMAIL PROTECTED] Wed Apr 18 12:11:39 +0000 
2007 -------
Is there a need for the empty selection if more than one ranges selected? I
think no. So the logical results should be
oSelection.getCount() - oSelection.hasElements()
. 0 - False
. 1 - True
. 2 - True
. ...

Or even because there are always at least one (empty) selection:
. 1 - False
. 1 - True
. 2 - True
. ...

If there is any need for the empty selection if any is selected (but IMO there
isn't), then it should also _always_ exist:
. 1 - True
. 2 - True
. 3 - True
. ...


But not 1 - 1 - 3 - 4 - ... as now!



Sub Testselect
 Dim oDoc As Object
 Dim oSelection As Object
 Dim i As Integer
 Dim s As String
 oDoc = ThisComponent
 oSelection = ThisComponent.getCurrentSelection()
 If oSelection.hasElements() Then
 For i = 0 To oSelection.getCount() - 1
 oSelection.getByIndex( i ).setString( "<--- " & Format( i, "00" ) & " --->" )
 Next i
 MsgBox( s )
 Else
 MsgBox( "no selection" )
 End If
End Sub

With this sample you can see that it counts
0
0
1 - 2+0
1 - 2 - 3+0
1 - 2 - 3 - 4+0

But i can't see the logic and need for the "+0".

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to