Fix merge error in df60c2e7a4

Although wxSTC defines SetValue, it doesn't actually work correctly.
This commit is contained in:
Thomas Goyne 2012-10-28 07:20:12 -07:00
parent 0e7501f45c
commit b5baacec2c

View file

@ -290,7 +290,7 @@ void SubsEditBox::OnCommit(int type) {
}
if (type & AssFile::COMMIT_DIAG_TEXT) {
TextEdit->SetValue(line->Text);
TextEdit->SetTextTo(line->Text);
}
if (type & AssFile::COMMIT_DIAG_META) {
@ -495,7 +495,7 @@ void SubsEditBox::SetControlsState(bool state) {
Enable(state);
if (!state) {
wxEventBlocker blocker(this);
TextEdit->SetValue("");
TextEdit->SetTextTo("");
}
}