forked from mia/Aegisub
Update both top and bottom margins when vertical margin is changed
Originally committed to SVN as r969.
This commit is contained in:
parent
ae37b2481f
commit
88639cf70c
2 changed files with 3 additions and 1 deletions
|
@ -426,7 +426,8 @@ void DialogStyleEditor::Apply (bool apply,bool close) {
|
||||||
// Margins
|
// Margins
|
||||||
work->SetMarginString(MarginL->GetValue(),0);
|
work->SetMarginString(MarginL->GetValue(),0);
|
||||||
work->SetMarginString(MarginR->GetValue(),1);
|
work->SetMarginString(MarginR->GetValue(),1);
|
||||||
work->SetMarginString(MarginV->GetValue(),2);
|
work->SetMarginString(MarginV->GetValue(),2); // make sure both top and bottom margins reflect vertical margin
|
||||||
|
work->SetMarginString(MarginV->GetValue(),3);
|
||||||
|
|
||||||
// Color alphas
|
// Color alphas
|
||||||
ColorAlpha1->GetValue().ToLong(&templ);
|
ColorAlpha1->GetValue().ToLong(&templ);
|
||||||
|
|
|
@ -748,6 +748,7 @@ void SubsEditBox::OnMarginVChange(wxCommandEvent &event) {
|
||||||
cur = grid->GetDialogue(sel[i]);
|
cur = grid->GetDialogue(sel[i]);
|
||||||
if (cur) {
|
if (cur) {
|
||||||
cur->SetMarginString(MarginV->GetValue(),2);
|
cur->SetMarginString(MarginV->GetValue(),2);
|
||||||
|
cur->SetMarginString(MarginV->GetValue(),3); // also bottom margin for now
|
||||||
cur->UpdateData();
|
cur->UpdateData();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue