Add missing call to get_offsets().
authorCarl Hetherington <cth@carlh.net>
Sat, 10 Feb 2024 15:49:35 +0000 (16:49 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 10 Feb 2024 15:49:35 +0000 (16:49 +0100)
src/wx/kdm_timing_panel.cc

index 7759d39496e8dec87e9c7cc4136fb85279605c6a..f4112cb087da5e0552d2bcfc1e9c0d1352838e28 100644 (file)
@@ -122,7 +122,7 @@ KDMTimingPanel::KDMTimingPanel (wxWindow* parent)
        _warning->SetFont(font);
 
        /* Default to UTC */
-       size_t sel = 0;
+       size_t sel = get_offsets(_offsets);
        for (size_t i = 0; i < _offsets.size(); ++i) {
                _utc_offset->add(_offsets[i].name);
                if (_offsets[i].hour == 0 && _offsets[i].minute == 0) {