summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-11-28 22:13:11 +0100
committerCarl Hetherington <cth@carlh.net>2024-11-28 22:13:12 +0100
commit9d11a95ac982633a1bc077fe841501e71f4125f5 (patch)
treeae762a69b376d1032e880a9a23f973e1807a88b0
parente017c800b6c563a005d1851154f8ac268382eb3b (diff)
Fix size of spin controls in the editor.
-rw-r--r--src/tools/dcpomatic_editor.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/dcpomatic_editor.cc b/src/tools/dcpomatic_editor.cc
index 3ca314355..2f86851c8 100644
--- a/src/tools/dcpomatic_editor.cc
+++ b/src/tools/dcpomatic_editor.cc
@@ -20,6 +20,7 @@
#include "wx/about_dialog.h"
+#include "wx/dcpomatic_spin_ctrl.h"
#include "wx/editable_list.h"
#include "wx/id.h"
#include "wx/wx_signal_manager.h"
@@ -85,12 +86,12 @@ public:
++r;
add_label_to_sizer(sizer, this, _("Entry point"), true, wxGBPosition(r, 0));
- _entry_point = new wxSpinCtrl(this, wxID_ANY);
+ _entry_point = new SpinCtrl(this, DCPOMATIC_SPIN_CTRL_WIDTH);
sizer->Add(_entry_point, wxGBPosition(r, 1), wxDefaultSpan);
++r;
add_label_to_sizer(sizer, this, _("Duration"), true, wxGBPosition(r, 0));
- _duration = new wxSpinCtrl(this, wxID_ANY);
+ _duration = new SpinCtrl(this, DCPOMATIC_SPIN_CTRL_WIDTH);
sizer->Add(_duration, wxGBPosition(r, 1), wxDefaultSpan);
++r;