Fix label alignment.
authorCarl Hetherington <cth@carlh.net>
Mon, 25 Jan 2021 23:37:42 +0000 (00:37 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 25 Jan 2021 23:37:42 +0000 (00:37 +0100)
src/wx/kdm_cpl_panel.cc
test/data

index 8bb73f783a473346a84463355eef96eabb182a00..f45fc529164f7ef760ebc39979335a13d067982f 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2015-2020 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2015-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
@@ -34,11 +34,11 @@ KDMCPLPanel::KDMCPLPanel (wxWindow* parent, vector<CPLSummary> cpls)
        : wxPanel (parent, wxID_ANY)
        , _cpls (cpls)
 {
-       wxBoxSizer* vertical = new wxBoxSizer (wxVERTICAL);
+       auto vertical = new wxBoxSizer (wxVERTICAL);
 
        /* CPL choice */
-       wxBoxSizer* s = new wxBoxSizer (wxHORIZONTAL);
-       add_label_to_sizer (s, this, _("CPL"), true);
+       auto s = new wxBoxSizer (wxHORIZONTAL);
+       add_label_to_sizer (s, this, _("CPL"), true, 0, wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL);
        _cpl = new wxChoice (this, wxID_ANY);
        s->Add (_cpl, 1, wxEXPAND);
        _cpl_browse = new Button (this, _("Browse..."));
index 21f386365bef1ee6f8073c088679357fbbb13f9d..8a1b08134f51c1172abd177eb64a4c790f854833 160000 (submodule)
--- a/test/data
+++ b/test/data
@@ -1 +1 @@
-Subproject commit 21f386365bef1ee6f8073c088679357fbbb13f9d
+Subproject commit 8a1b08134f51c1172abd177eb64a4c790f854833