diff --git a/src/LabelTrack.cpp b/src/LabelTrack.cpp index 5fec06aa2..c045be04a 100644 --- a/src/LabelTrack.cpp +++ b/src/LabelTrack.cpp @@ -1246,10 +1246,10 @@ LabelStruct::TimeRelations LabelStruct::RegionRelation( if(retainLabels) { // Desired behavior for edge cases: The length of the selection is smaller - // than the length of the label if the selection is within the label. - // Selections matching exactly a (region) label surround the label. + // than the length of the label if the selection is within the label or + // matching exactly a (region) label. - if ((reg_t0 < t && reg_t1 > t1) || (reg_t0 == t && reg_t1 == t1)) + if (reg_t0 < t && reg_t1 > t1) return SURROUNDS_LABEL; else if (reg_t1 < t) return BEFORE_LABEL; diff --git a/src/prefs/GUIPrefs.cpp b/src/prefs/GUIPrefs.cpp index 7df90a551..e666534f0 100644 --- a/src/prefs/GUIPrefs.cpp +++ b/src/prefs/GUIPrefs.cpp @@ -128,7 +128,7 @@ void GUIPrefs::PopulateOrExchange(ShuttleGui & S) S.TieCheckBox(_("&Show track name in waveform display"), wxT("/GUI/ShowTrackNameInWaveform"), false); - S.TieCheckBox(_("&Retain labels when they define the edge of a selection"), + S.TieCheckBox(_("Re&tain labels if selection snaps to a label edge"), wxT("/GUI/RetainLabels"), false); }