From: <avn...@us...> - 2008-01-18 11:44:56
|
Revision: 2829 http://urakawa.svn.sourceforge.net/urakawa/?rev=2829&view=rev Author: avneeshsingh Date: 2008-01-18 03:44:54 -0800 (Fri, 18 Jan 2008) Log Message: ----------- Minor error in to do function corrected Modified Paths: -------------- trunk/urakawa/application/Obi/Obi/ProjectView/TransportBar.cs Modified: trunk/urakawa/application/Obi/Obi/ProjectView/TransportBar.cs =================================================================== --- trunk/urakawa/application/Obi/Obi/ProjectView/TransportBar.cs 2008-01-18 11:37:47 UTC (rev 2828) +++ trunk/urakawa/application/Obi/Obi/ProjectView/TransportBar.cs 2008-01-18 11:44:54 UTC (rev 2829) @@ -1320,29 +1320,29 @@ public void MarkTodoClass() { EmptyNode node; - if ( IsPlaying) - Pause(); - + if (IsPlaying) + Pause(); + if (IsRecording) { - node = mRecordingSection.PhraseChild(mRecordingSection.PhraseChildCount - 1); - mView.Presentation.UndoRedoManager.execute(new Commands.Node.ChangeCustomType(mView, node, - EmptyNode.Kind.To_Do )); + node = mRecordingSection.PhraseChild(mRecordingSection.PhraseChildCount - 1); + mView.Presentation.UndoRedoManager.execute(new Commands.Node.ChangeCustomType(mView, node, + EmptyNode.Kind.To_Do)); NextPhrase(); } - else + else { node = mView.SelectedNodeAs<EmptyNode>(); + + if (node != null) + { + mView.Presentation.UndoRedoManager.execute(new Commands.Node.ChangeCustomType(mView, node, + EmptyNode.Kind.To_Do)); + } } - if ( node != null ) - { - mView.Presentation.UndoRedoManager.execute(new Commands.Node.ChangeCustomType(mView, node, - EmptyNode.Kind.To_Do )); - } - } + } - #endregion } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |