diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-01-10 23:49:18 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-01-10 23:49:18 +0100 |
| commit | e76a70308c30cc8f191ae6b275e3da5f70ba5d16 (patch) | |
| tree | 6eaf3ea1aef319f92e38df6c88c3d576582a134a | |
| parent | abf81c1e379b151ce29a1de3b87bf19db7a537d5 (diff) | |
Fix crash when changing ISDCF name part length (#2690).
| -rw-r--r-- | src/wx/dcp_panel.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wx/dcp_panel.cc b/src/wx/dcp_panel.cc index eba5b777c..f4ba74cde 100644 --- a/src/wx/dcp_panel.cc +++ b/src/wx/dcp_panel.cc @@ -727,6 +727,10 @@ DCPPanel::use_isdcf_name_toggled () void DCPPanel::setup_dcp_name () { + if (!_film) { + return; + } + _dcp_name->SetLabel (std_to_wx(_film->dcp_name(true))); _dcp_name->SetToolTip (std_to_wx(_film->dcp_name(true))); } |
