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

Modified Files:
        TrackPanel.cpp 
Log Message:
Protect against zero dimensions for wxMac

Index: TrackPanel.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/TrackPanel.cpp,v
retrieving revision 1.327
retrieving revision 1.328
diff -u -d -r1.327 -r1.328
--- TrackPanel.cpp      26 Sep 2006 18:23:12 -0000      1.327
+++ TrackPanel.cpp      15 Oct 2006 03:30:15 -0000      1.328
@@ -1047,6 +1047,10 @@
    int width, height;
    GetSize( &width, &height );
 
+   // wxMac doesn't like zero dimensions, so protect against it
+   width = width == 0 ? 1 : width;
+   height = height == 0 ? 1 : height;
+
    // (Re)allocate the backing bitmap
    if( mBacking )
    {


-------------------------------------------------------------------------
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

Reply via email to