Update of /cvsroot/audacity/audacity-src/src
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv31730
Modified Files:
LabelTrack.cpp
Log Message:
Position cursor properly after paste
Index: LabelTrack.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/LabelTrack.cpp,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -d -r1.71 -r1.72
--- LabelTrack.cpp 1 Oct 2006 23:50:31 -0000 1.71
+++ LabelTrack.cpp 22 Oct 2006 20:35:21 -0000 1.72
@@ -906,7 +906,7 @@
right = (mLabels[mSelIndex]->title).Mid(mCurrentCursorPos,
(mLabels[mSelIndex]->title).Length()-mCurrentCursorPos);
}
mLabels[mSelIndex]->title = left + text + right;
- mCurrentCursorPos = left.Length() + text.Length() - 1;
+ mCurrentCursorPos = left.Length() + text.Length();
}
else
{
@@ -917,7 +917,7 @@
mLabels[mSelIndex]->title =
(mLabels[mSelIndex]->title).Left(mCurrentCursorPos);
mLabels[mSelIndex]->title += text;
mLabels[mSelIndex]->title += right;
- mCurrentCursorPos += text.Length() - 1;
+ mCurrentCursorPos += text.Length();
}
// set mInitialCursorPos equal to currentCursorPos
mInitialCursorPos = mCurrentCursorPos;
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs