]> git.saurik.com Git - wxWidgets.git/commitdiff
initialize m_hasXXX in wxWindowBase
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 8 Dec 2001 14:03:33 +0000 (14:03 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 8 Dec 2001 14:03:33 +0000 (14:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/wincmn.cpp
src/univ/winuniv.cpp

index c052a11bb4d0a813de30a1aab92a38615f1a3e99..0669e82bd11b815080cc5860ec43fdbf96b4e658 100644 (file)
@@ -134,6 +134,11 @@ void wxWindowBase::InitBase()
     m_font = wxSystemSettings::GetSystemFont(wxSYS_DEFAULT_GUI_FONT);
 #endif // __WXMSW__
 
+    // the colours/fonts are default for now
+    m_hasBgCol =
+    m_hasFgCol =
+    m_hasFont = FALSE;
+
     // no style bits
     m_exStyle =
     m_windowStyle = 0;
index 2727e0b89a16c2ff3270975df19b2cfb68211ff8..e768483c3fa89360ed5d70c867ff8ffc6cd95306 100644 (file)
@@ -135,11 +135,6 @@ bool wxWindow::Create(wxWindow *parent,
         PositionScrollbars();
     }
 
-    // the colours/fonts are default
-    m_hasBgCol =
-    m_hasFgCol =
-    m_hasFont = FALSE;
-
     return TRUE;
 }