]> git.saurik.com Git - wxWidgets.git/commitdiff
initialize m_totalProportion in wxBoxSizer ctor
authorPaul Cornett <paulcor@bullseye.com>
Sat, 12 Jan 2008 17:45:41 +0000 (17:45 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Sat, 12 Jan 2008 17:45:41 +0000 (17:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51180 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/sizer.h

index 8ae125062dac6c539ab553cb8234d53b711ea0bd..125dd55c7f95a8bd19eec4d1d17f338686f39dea 100644 (file)
@@ -799,6 +799,7 @@ public:
     wxBoxSizer(int orient)
     {
         m_orient = orient;
+        m_totalProportion = 0;
 
         wxASSERT_MSG( m_orient == wxHORIZONTAL || m_orient == wxVERTICAL,
                       _T("invalid value for wxBoxSizer orientation") );