Update of /cvsroot/audacity/audacity-src/src
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv29736/src

Modified Files:
        TrackPanel.cpp 
Log Message:
Snap-to-time fixes, take 2. Gets rid of troublesome dummy control, doesn't
use snap manager when snapping to time.


Index: TrackPanel.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/TrackPanel.cpp,v
retrieving revision 1.483
retrieving revision 1.484
diff -u -d -r1.483 -r1.484
--- TrackPanel.cpp      31 Dec 2009 02:16:59 -0000      1.483
+++ TrackPanel.cpp      21 Jan 2010 06:09:34 -0000      1.484
@@ -1789,9 +1789,14 @@
 
    if (mSnapManager)
       delete mSnapManager;
-   mSnapManager = new SnapManager(mTracks, NULL,
-                                  mViewInfo->zoom,
-                                  4); // pixel tolerance
+
+   // "/SnapTo" pref refers to snapping to time. Don't use the snap manager in
+   // this case
+   if (gPrefs->Read(wxT("/SnapTo"), 0L) == 0) {
+      mSnapManager = new SnapManager(mTracks, NULL,
+                                     mViewInfo->zoom,
+                                     4); // pixel tolerance
+   }
    mSnapLeft = -1;
    mSnapRight = -1;
 


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Audacity-cvs mailing list
Audacity-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to