diff --git a/src/command/edit.cpp b/src/command/edit.cpp index c6790e87b..fc2655e3a 100644 --- a/src/command/edit.cpp +++ b/src/command/edit.cpp @@ -141,16 +141,17 @@ AssDialogue *paste_over(wxWindow *parent, std::vector& pasteOverOptions, A pasteOverOptions = OPT_GET("Tool/Paste Lines Over/Fields")->GetListBool(); } - if (pasteOverOptions[0]) old_line->Layer = new_line->Layer; - if (pasteOverOptions[1]) old_line->Start = new_line->Start; - if (pasteOverOptions[2]) old_line->End = new_line->End; - if (pasteOverOptions[3]) old_line->Style = new_line->Style; - if (pasteOverOptions[4]) old_line->Actor = new_line->Actor; - if (pasteOverOptions[5]) old_line->Margin[0] = new_line->Margin[0]; - if (pasteOverOptions[6]) old_line->Margin[1] = new_line->Margin[1]; - if (pasteOverOptions[7]) old_line->Margin[2] = new_line->Margin[2]; - if (pasteOverOptions[8]) old_line->Effect = new_line->Effect; - if (pasteOverOptions[9]) old_line->Text = new_line->Text; + if (pasteOverOptions[0]) old_line->Comment = new_line->Comment; + if (pasteOverOptions[1]) old_line->Layer = new_line->Layer; + if (pasteOverOptions[2]) old_line->Start = new_line->Start; + if (pasteOverOptions[3]) old_line->End = new_line->End; + if (pasteOverOptions[4]) old_line->Style = new_line->Style; + if (pasteOverOptions[5]) old_line->Actor = new_line->Actor; + if (pasteOverOptions[6]) old_line->Margin[0] = new_line->Margin[0]; + if (pasteOverOptions[7]) old_line->Margin[1] = new_line->Margin[1]; + if (pasteOverOptions[8]) old_line->Margin[2] = new_line->Margin[2]; + if (pasteOverOptions[9]) old_line->Effect = new_line->Effect; + if (pasteOverOptions[10]) old_line->Text = new_line->Text; return old_line; } diff --git a/src/dialog_paste_over.cpp b/src/dialog_paste_over.cpp index 2e12a42e4..30cc6c110 100644 --- a/src/dialog_paste_over.cpp +++ b/src/dialog_paste_over.cpp @@ -45,7 +45,7 @@ #include "options.h" DialogPasteOver::DialogPasteOver(wxWindow *parent) -: wxDialog (parent, -1, _("Select Fields to Paste Over")) +: wxDialog(parent, -1, _("Select Fields to Paste Over")) { // Label and list sizer wxSizer *ListSizer = new wxStaticBoxSizer(wxVERTICAL, this, _("Fields")); @@ -53,6 +53,7 @@ DialogPasteOver::DialogPasteOver(wxWindow *parent) // List box wxArrayString choices; + choices.Add(_("Comment")); choices.Add(_("Layer")); choices.Add(_("Start Time")); choices.Add(_("End Time")); @@ -111,13 +112,13 @@ void DialogPasteOver::OnOK(wxCommandEvent &) { void DialogPasteOver::OnText(wxCommandEvent &) { CheckAll(false); - ListBox->Check(9, true); + ListBox->Check(10, true); } void DialogPasteOver::OnTimes(wxCommandEvent &) { CheckAll(false); - ListBox->Check(1, true); ListBox->Check(2, true); + ListBox->Check(3, true); } void DialogPasteOver::CheckAll(bool check) {