projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix sizing of editor's reel dialog.
[dcpomatic.git]
/
src
/
tools
/
dcpomatic_editor.cc
diff --git
a/src/tools/dcpomatic_editor.cc
b/src/tools/dcpomatic_editor.cc
index a61a17ce4ff74eb8cd80680b07c7392cdac43937..69fbe4643a1fa2dec5be43f748685fa0c472a8d2 100644
(file)
--- a/
src/tools/dcpomatic_editor.cc
+++ b/
src/tools/dcpomatic_editor.cc
@@
-147,10
+147,10
@@
public:
ReelEditor(wxWindow* parent)
: wxDialog(parent, wxID_ANY, _("Edit reel"))
{
ReelEditor(wxWindow* parent)
: wxDialog(parent, wxID_ANY, _("Edit reel"))
{
-
auto
sizer = new wxBoxSizer(wxVERTICAL);
+
_
sizer = new wxBoxSizer(wxVERTICAL);
_notebook = new wxNotebook(this, wxID_ANY);
_notebook = new wxNotebook(this, wxID_ANY);
- sizer->Add(_notebook, wxEXPAND | wxALL, 1, DCPOMATIC_DIALOG_BORDER);
- SetSizerAndFit(sizer);
+
_
sizer->Add(_notebook, wxEXPAND | wxALL, 1, DCPOMATIC_DIALOG_BORDER);
+ SetSizerAndFit(
_
sizer);
}
optional<shared_ptr<dcp::Reel>> get() {
}
optional<shared_ptr<dcp::Reel>> get() {
@@
-171,10
+171,14
@@
public:
if (_reel->main_subtitle()) {
_notebook->AddPage(new AssetPanel(_notebook, _reel->main_subtitle()), _("Subtitle"));
}
if (_reel->main_subtitle()) {
_notebook->AddPage(new AssetPanel(_notebook, _reel->main_subtitle()), _("Subtitle"));
}
+
+ _sizer->Layout();
+ _sizer->SetSizeHints(this);
}
private:
wxNotebook* _notebook = nullptr;
}
private:
wxNotebook* _notebook = nullptr;
+ wxSizer* _sizer = nullptr;
shared_ptr<dcp::Reel> _reel;
};
shared_ptr<dcp::Reel> _reel;
};