Update of /cvsroot/mahogany/M/src/gui
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv25705/src/gui
Modified Files:
wxDialogLayout.cpp
Log Message:
fix VC7 warning about potentially (but not really) uninitialized variable after
last checkin
Index: wxDialogLayout.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxDialogLayout.cpp,v
retrieving revision 1.121
retrieving revision 1.122
diff -b -u -2 -r1.121 -r1.122
--- wxDialogLayout.cpp 26 May 2006 10:37:16 -0000 1.121
+++ wxDialogLayout.cpp 28 May 2006 02:30:33 -0000 1.122
@@ -1108,5 +1108,4 @@
bool setAsMinimalSizeToo)
{
- int heightInitital;
if ( !LastSizeRestored() || setAsMinimalSizeToo )
{
@@ -1115,9 +1114,5 @@
{
// don't create dialogs taller than the screen
- heightInitital = heightScreen;
- }
- else
- {
- heightInitital = height;
+ height = heightScreen;
}
}
@@ -1125,5 +1120,5 @@
if ( !LastSizeRestored() )
{
- SetClientSize(width, heightInitital);
+ SetClientSize(width, height);
Centre(wxCENTER_FRAME | wxBOTH);
@@ -1135,7 +1130,7 @@
// big for the screen - but still set some minimal height to prevent it
// from being shrunk to nothing at all
- SetSizeHints(width, wxMin(heightInitital, 40*hBtn));
+ SetSizeHints(width, wxMin(height, 40*hBtn));
- m_sizeMin = wxSize(width, heightInitital);
+ m_sizeMin = wxSize(width, height);
}
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates