diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-10-23 23:58:43 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-10-23 23:58:43 +0200 |
| commit | f217438d011282515476fbec6307e36dd7c0ffe9 (patch) | |
| tree | becbb5b558c1ef5268a103f02399ff41e9899a62 | |
| parent | 1a7c50245309bb0b99001940b2203a267de942ca (diff) | |
Fix some label alignments.
| -rw-r--r-- | src/wx/custom_scale_dialog.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/custom_scale_dialog.cc b/src/wx/custom_scale_dialog.cc index bb8be8e80..8a5f9e128 100644 --- a/src/wx/custom_scale_dialog.cc +++ b/src/wx/custom_scale_dialog.cc @@ -44,7 +44,7 @@ CustomScaleDialog::CustomScaleDialog (wxWindow* parent, dcp::Size initial, dcp:: wxBoxSizer* s = new wxBoxSizer (wxHORIZONTAL); _ratio = new wxTextCtrl (this, wxID_ANY, _(""), wxDefaultPosition, wxDefaultSize, 0, wxNumericPropertyValidator(wxNumericPropertyValidator::Float)); s->Add (_ratio, 1, wxRIGHT, 4); - add_label_to_sizer (s, this, wxT(":1"), false); + add_label_to_sizer (s, this, wxT(":1"), false, 0, wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL); add (s); _size_from_ratio = new wxStaticText (this, wxID_ANY, wxT("")); add (_size_from_ratio, 1, wxALIGN_CENTER_VERTICAL); @@ -60,7 +60,7 @@ CustomScaleDialog::CustomScaleDialog (wxWindow* parent, dcp::Size initial, dcp:: s = new wxBoxSizer (wxHORIZONTAL); _width = new wxSpinCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(spin_width, -1), wxSP_ARROW_KEYS, 1, film_container.width); s->Add (_width, 1, wxRIGHT, 4); - add_label_to_sizer (s, this, wxT("x"), false); + add_label_to_sizer (s, this, wxT("x"), false, 0, wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL); _height = new wxSpinCtrl (this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(spin_width, -1), wxSP_ARROW_KEYS, 1, film_container.height); s->Add (_height, 1, wxRIGHT, 4); add (s); |
