Fix crash when changing ISDCF name part length (#2690).
authorCarl Hetherington <cth@carlh.net>
Wed, 10 Jan 2024 22:49:18 +0000 (23:49 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 10 Jan 2024 22:49:18 +0000 (23:49 +0100)
src/wx/dcp_panel.cc

index eba5b777c64c977be9e3e146caf312e89ae74342..f4ba74cdefbbcefd433379a26698af0bac33f9c5 100644 (file)
@@ -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)));
 }