Update of /cvsroot/audacity/audacity-src/src
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv28468/src

Modified Files:
        Envelope.cpp 
Log Message:
Avoid some envelope assertions in the equalization panel


Index: Envelope.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/Envelope.cpp,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -d -r1.69 -r1.70
--- Envelope.cpp        17 Sep 2009 18:32:18 -0000      1.69
+++ Envelope.cpp        20 Nov 2009 21:18:00 -0000      1.70
@@ -364,7 +364,7 @@
 
    int clip_y = event.m_y - r.y;
    if(clip_y < 0) clip_y = 0; //keeps point in rect r, even if mouse isn't
-   if(clip_y > r.height) clip_y = r.height;
+   if(clip_y > r.GetBottom()) clip_y = r.GetBottom();
 
    double tleft = h - mOffset;
    double tright = tleft + (r.width / pps);


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Audacity-cvs mailing list
Audacity-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to