Some doc updates.

Corrected wxFileDialog::GetFilenames() and GetPaths()
    if no file is selected.
  Corrceted make install.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5052 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1999-12-21 16:43:54 +00:00
parent 77c3e48a9e
commit 28c9c76e7f
5 changed files with 33 additions and 12 deletions

View File

@@ -901,6 +901,12 @@ void wxFileDialog::SetPath( const wxString& path )
void wxFileDialog::GetPaths( wxArrayString& paths ) const
{
paths.Empty();
if (m_list->GetSelectedItemCount() == 0)
{
paths.Add( GetPath() );
return;
}
paths.Alloc( m_list->GetSelectedItemCount() );
wxString dir;
@@ -922,6 +928,11 @@ void wxFileDialog::GetPaths( wxArrayString& paths ) const
void wxFileDialog::GetFilenames(wxArrayString& files) const
{
files.Empty();
if (m_list->GetSelectedItemCount() == 0)
{
files.Add( GetFilename() );
return;
}
files.Alloc( m_list->GetSelectedItemCount() );
wxListItem item;