Permalink
Browse files

Fix for section label editor bug recently introduced.

  • Loading branch information...
1 parent 970bcf2 commit 8f8a67318c5077d12c79fd6e800de4d6371277d8 @muellmusik committed Apr 10, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 SuperSimpleTimeline.sc
View
@@ -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);
@@ -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);

0 comments on commit 8f8a673

Please sign in to comment.