mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-09 08:31:13 +02:00
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) {
|
if(retainLabels) {
|
||||||
|
|
||||||
// Desired behavior for edge cases: The length of the selection is smaller
|
// 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.
|
// than the length of the label if the selection is within the label or
|
||||||
// Selections matching exactly a (region) label surround the label.
|
// 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;
|
return SURROUNDS_LABEL;
|
||||||
else if (reg_t1 < t)
|
else if (reg_t1 < t)
|
||||||
return BEFORE_LABEL;
|
return BEFORE_LABEL;
|
||||||
|
@ -128,7 +128,7 @@ void GUIPrefs::PopulateOrExchange(ShuttleGui & S)
|
|||||||
S.TieCheckBox(_("&Show track name in waveform display"),
|
S.TieCheckBox(_("&Show track name in waveform display"),
|
||||||
wxT("/GUI/ShowTrackNameInWaveform"),
|
wxT("/GUI/ShowTrackNameInWaveform"),
|
||||||
false);
|
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"),
|
wxT("/GUI/RetainLabels"),
|
||||||
false);
|
false);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user