From: <avn...@us...> - 2008-05-19 19:14:40
|
Revision: 3088 http://urakawa.svn.sourceforge.net/urakawa/?rev=3088&view=rev Author: avneeshsingh Date: 2008-05-19 12:14:36 -0700 (Mon, 19 May 2008) Log Message: ----------- Fix to bugg: 1964061 On the fly Page marks do not increase page nos. while recording 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-05-19 03:56:41 UTC (rev 3087) +++ trunk/urakawa/application/Obi/Obi/ProjectView/TransportBar.cs 2008-05-19 19:14:36 UTC (rev 3088) @@ -1389,7 +1389,9 @@ private void SetPageNumberWhileRecording(Obi.Events.Audio.Recorder.PhraseEventArgs e) { - int PageNumber = mView.Presentation.PageNumberFor(mRecordingSection.PhraseChild(mRecordingInitPhraseIndex + e.PhraseIndex)); + // argument e contains index of last phrase of just finished page + //so index should be incremented by one to get page of newly created page. + int PageNumber = mView.Presentation.PageNumberFor(mRecordingSection.PhraseChild(mRecordingInitPhraseIndex + e.PhraseIndex + 1 )); urakawa.undo.ICommand cmd = new Commands.Node.SetPageNumber(mView, (EmptyNode)mRecordingSection.PhraseChild(mRecordingInitPhraseIndex + e.PhraseIndex + 1), PageNumber); cmd.execute(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |