Reduce minimum "non-standard" ISDCF part name length to 1.
authorCarl Hetherington <cth@carlh.net>
Thu, 11 Jan 2024 10:28:24 +0000 (11:28 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 11 Jan 2024 10:28:24 +0000 (11:28 +0100)
Otherwise on macOS (at least) you can't type in any numbers, seemingly because
it checks on each keypress so e.g. you clear it, enter 1 and a bell rings because
1 is too small.  It's fine on Linux (a too-small number is corrected when you
press enter).

src/wx/full_config_dialog.cc

index 175d787309ed8c8e3dc88a3a0343cc029a17b9e7..2d4679611c9f6981332636fbee39a282af830d84 100644 (file)
@@ -1562,7 +1562,7 @@ private:
                _allow_96khz_audio->bind(&NonStandardPage::allow_96khz_audio_changed, this);
                _use_all_audio_channels->bind(&NonStandardPage::use_all_channels_changed, this);
                _allow_smpte_bv20->bind(&NonStandardPage::allow_smpte_bv20_changed, this);
-               _isdcf_name_part_length->SetRange(14, 256);
+               _isdcf_name_part_length->SetRange(1, 256);
                _isdcf_name_part_length->Bind(wxEVT_SPINCTRL, boost::bind(&NonStandardPage::isdcf_name_part_length_changed, this));
        }