mirror of https://github.com/odrling/Aegisub
Fix merge error in df60c2e7a4
Although wxSTC defines SetValue, it doesn't actually work correctly.
This commit is contained in:
parent
0e7501f45c
commit
b5baacec2c
|
@ -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("");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue