Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

Commit

Permalink
Deal with incompatible wx2.6.2 API changes (group combobox in securit…
Browse files Browse the repository at this point in the history
…y panel)

git-svn-id: svn://svn.pgadmin.org/branches/REL-1_4_0_PATCHES@4773 a7884b65-44f6-0310-8a51-81a127f17b15
  • Loading branch information
Andreas Pflug committed Dec 1, 2005
1 parent b9dfcc7 commit d6a58fa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/ctl/ctlComboBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,15 +208,23 @@ int ctlComboBox::GuessSelection(wxCommandEvent &ev)

int ctlComboBox::GetGuessedSelection() const
{
#if wxABI_VERSION >= 20602
int sel=wxComboBox::GetCurrentSelection();
#else
int sel=wxComboBox::GetSelection();
#endif
if (sel < 0)
sel = FindString(GetValue());
return sel;
}

int ctlComboBox::GetSelection() const
{
#if wxABI_VERSION >= 20602
int sel=wxComboBox::GetCurrentSelection();
#else
int sel=wxComboBox::GetSelection();
#endif
if (sel < 0)
sel = FindString(GetValue());
return sel;
Expand Down

0 comments on commit d6a58fa

Please sign in to comment.