This commit is contained in:
v.audacity 2012-07-18 23:32:36 +00:00
parent 9483c9ac6b
commit e0fb5c898f
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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);
}