git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61905
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
m_windowId = NewControlId();
else
m_windowId = vId;
m_windowId = NewControlId();
else
m_windowId = vId;
- m_backgroundColour = pParent->GetBackgroundColour();
- m_foregroundColour = pParent->GetForegroundColour();
+ if (pParent)
+ {
+ m_backgroundColour = pParent->GetBackgroundColour();
+ m_foregroundColour = pParent->GetForegroundColour();
+ }
SetName(rsName);
SetParent(pParent);
m_windowStyle = lStyle;
SetName(rsName);
SetParent(pParent);
m_windowStyle = lStyle;
m_windowId = NewControlId();
else
m_windowId = vId;
m_windowId = NewControlId();
else
m_windowId = vId;
- m_backgroundColour = pParent->GetBackgroundColour();
- m_foregroundColour = pParent->GetForegroundColour();
+ if (pParent)
+ {
+ m_backgroundColour = pParent->GetBackgroundColour();
+ m_foregroundColour = pParent->GetForegroundColour();
+ }
SetName(rsName);
SetParent(pParent);
m_windowStyle = lStyle;
SetName(rsName);
SetParent(pParent);
m_windowStyle = lStyle;