From bc640b4f94ab07ea91a3a648362fbc88bbbea3c1 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sat, 24 Dec 2011 00:47:41 +0000 Subject: [PATCH] Fix use of uninitialized value that resulted in the find/replace dialog always opening as the replace dialog Originally committed to SVN as r6155. --- aegisub/src/dialog_search_replace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/dialog_search_replace.cpp b/aegisub/src/dialog_search_replace.cpp index 2791799e7..6b40f7429 100644 --- a/aegisub/src/dialog_search_replace.cpp +++ b/aegisub/src/dialog_search_replace.cpp @@ -66,7 +66,7 @@ enum { DialogSearchReplace::DialogSearchReplace(agi::Context* c, bool withReplace) : wxDialog(c->parent, -1, withReplace ? _("Replace") : _("Find")) -, hasReplace(hasReplace) +, hasReplace(withReplace) { wxSizer *FindSizer = new wxFlexGridSizer(2,2,5,15); FindEdit = new wxComboBox(this,-1,"",wxDefaultPosition,wxSize(300,-1),lagi_MRU_wxAS("Find"),wxCB_DROPDOWN);