Skip to content

Commit

Permalink
Fix for section label editor bug recently introduced.
Browse files Browse the repository at this point in the history
  • Loading branch information
muellmusik committed Apr 10, 2012
1 parent 970bcf2 commit 8f8a673
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SuperSimpleTimeline.sc
Expand Up @@ -591,7 +591,7 @@ SSTGUI {
}, {
selectedSectionLabel.notNil.if({
var sectionNameEditor, sectionNameEditorBounds, thisLabel;
thisLabel = selectedLabel;
thisLabel = selectedSectionLabel;
sectionNameEditorBounds = selectedSectionLabelRect.outsetBy(3);
sectionNameEditorBounds.width = max(sectionNameEditorBounds.width, 60);
sectionNameEditor = TextField(timesView, sectionNameEditorBounds);
Expand All @@ -605,7 +605,7 @@ SSTGUI {
newName = view.string;
if(view.string.size > 0
&& { sst.sections.detect({|item| item.name == newName}).isNil }, {
selectedSectionLabel.name = newName;
thisLabel.name = newName;
timesView.refresh;
});
eventsView.focus(true);
Expand Down

0 comments on commit 8f8a673

Please sign in to comment.