Update of /cvsroot/audacity/audacity-src/src/widgets
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv26833

Modified Files:
        Ruler.cpp 
Log Message:
Corrects an issue where dragging play region start to less than 0 causes the 
indicators to not display even though the region is actually selected

Index: Ruler.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/widgets/Ruler.cpp,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- Ruler.cpp   18 Nov 2006 06:18:09 -0000      1.42
+++ Ruler.cpp   27 May 2007 09:07:45 -0000      1.43
@@ -1216,6 +1216,9 @@
       SetCursor(wxCursor(wxCURSOR_HAND));
       
    double mouseTime = Pos2Time(evt.GetX());
+   if (mouseTime < 0.0) {
+      mouseTime = 0.0;
+   }
    
    if (evt.LeftDown())
    {
@@ -1336,7 +1339,7 @@
 {
    double start, end;
    GetPlayRegion(&start, &end);
-   
+
    if (start >= 0)
    {
       int x1 = Time2Pos(start) + 1;


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to