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

Modified Files:
        PrefsDialog.cpp 
Log Message:
Ensure that the minimum dialog size isn't greater than the maximum.  This can 
occur if the translated strings are over long.  (Test with Catalan.)


Index: PrefsDialog.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/prefs/PrefsDialog.cpp,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -r1.64 -r1.65
--- PrefsDialog.cpp     7 Jun 2009 11:24:12 -0000       1.64
+++ PrefsDialog.cpp     14 Jun 2009 04:55:55 -0000      1.65
@@ -129,6 +129,17 @@
    Layout();
    Fit();
    wxSize sz = GetSize();
+
+   wxASSERT_MSG(sz.x > 800 || sz.y > 600, wxT("Preferences dialog exceeds max 
size"));
+
+   if (sz.x > 800) {
+      sz.x = 800;
+   }
+
+   if (sz.y > 600) {
+      sz.y = 600;
+   }
+
    SetSizeHints(sz.x, sz.y, 800, 600);
 
    // Center after all that resizing, but make sure it doesn't end up


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to