[ 1730452 ] Autocompletion on comboboxes

- minor bugfix, discover after further testing
This commit is contained in:
Heng Sin Low 2007-06-11 17:45:55 +00:00
parent 4dc41bde4e
commit 3be5e7907b
1 changed files with 2 additions and 2 deletions

View File

@ -442,17 +442,17 @@ public class VLookup extends JComponent
// Set both for switching // Set both for switching
if (value == null) if (value == null)
{ {
m_combo.setValue (value);
m_text.setText (null); m_text.setText (null);
m_lastDisplay = ""; m_lastDisplay = "";
m_combo.setValue (value);
m_settingValue = false; m_settingValue = false;
return; return;
} }
if (m_lookup == null) if (m_lookup == null)
{ {
m_combo.setValue (value);
m_text.setText (value.toString()); m_text.setText (value.toString());
m_lastDisplay = value.toString(); m_lastDisplay = value.toString();
m_combo.setValue (value);
m_settingValue = false; m_settingValue = false;
return; return;
} }