Update of /cvsroot/mahogany/M/src/gui
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv32412/src/gui
Modified Files:
wxMDialogs.cpp
Log Message:
always make licence dialog of some reasonable size, even if the splash bitmap
was replaced by tiny 'unknown' bitmap because the real one couldn't be found
Index: wxMDialogs.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxMDialogs.cpp,v
retrieving revision 1.434
retrieving revision 1.435
diff -b -u -2 -r1.434 -r1.435
--- wxMDialogs.cpp 23 Aug 2006 15:35:12 -0000 1.434
+++ wxMDialogs.cpp 25 Aug 2006 16:22:46 -0000 1.435
@@ -2164,6 +2164,8 @@
wxHtmlWindow *license = new wxHtmlWindow(this);
- wxBitmap bmp(mApplication->GetIconManager()-> GetBitmap(_T("Msplash")));
- const int w = bmp.Ok() ? bmp.GetWidth() : 400;
+ wxBitmap bmp(mApplication->GetIconManager()->GetBitmap(_T("Msplash")));
+ int w = bmp.Ok() ? bmp.GetWidth() : 0;
+ if ( w < 400 )
+ w = 400;
wxMemoryFSHandler::AddFile(_T("splash.png"), bmp, wxBITMAP_TYPE_PNG);
-------------------------------------------------------------------------
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
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates