Fix use of uninitialized value that resulted in the find/replace dialog always opening as the replace dialog

Originally committed to SVN as r6155.
This commit is contained in:
Thomas Goyne 2011-12-24 00:47:41 +00:00
parent 7c6696a53a
commit bc640b4f94
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ enum {
DialogSearchReplace::DialogSearchReplace(agi::Context* c, bool withReplace) DialogSearchReplace::DialogSearchReplace(agi::Context* c, bool withReplace)
: wxDialog(c->parent, -1, withReplace ? _("Replace") : _("Find")) : wxDialog(c->parent, -1, withReplace ? _("Replace") : _("Find"))
, hasReplace(hasReplace) , hasReplace(withReplace)
{ {
wxSizer *FindSizer = new wxFlexGridSizer(2,2,5,15); wxSizer *FindSizer = new wxFlexGridSizer(2,2,5,15);
FindEdit = new wxComboBox(this,-1,"",wxDefaultPosition,wxSize(300,-1),lagi_MRU_wxAS("Find"),wxCB_DROPDOWN); FindEdit = new wxComboBox(this,-1,"",wxDefaultPosition,wxSize(300,-1),lagi_MRU_wxAS("Find"),wxCB_DROPDOWN);