Benjamin's patch for http://bugzilla.audacityteam.org/show_bug.cgi?id=466
This commit is contained in:
parent
9483c9ac6b
commit
e0fb5c898f
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue