Update both top and bottom margins when vertical margin is changed

Originally committed to SVN as r969.
This commit is contained in:
Niels Martin Hansen 2007-04-01 12:21:16 +00:00
parent ae37b2481f
commit 88639cf70c
2 changed files with 3 additions and 1 deletions

View file

@ -426,7 +426,8 @@ void DialogStyleEditor::Apply (bool apply,bool close) {
// Margins
work->SetMarginString(MarginL->GetValue(),0);
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
ColorAlpha1->GetValue().ToLong(&templ);

View file

@ -748,6 +748,7 @@ void SubsEditBox::OnMarginVChange(wxCommandEvent &event) {
cur = grid->GetDialogue(sel[i]);
if (cur) {
cur->SetMarginString(MarginV->GetValue(),2);
cur->SetMarginString(MarginV->GetValue(),3); // also bottom margin for now
cur->UpdateData();
}
}