]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/datectlg.cpp
Add markup support to wxMSW wxButton and show it in the sample.
[wxWidgets.git] / src / generic / datectlg.cpp
index 2ebe9c7c4b601f744a59d71ca0f734546c9b0188..3e6d041eb511571811ee04c178043d5501833cca 100644 (file)
@@ -381,8 +381,10 @@ wxSize wxDatePickerCtrlGeneric::DoGetBestSize() const
 wxWindowList wxDatePickerCtrlGeneric::GetCompositeWindowParts() const
 {
     wxWindowList parts;
-    parts.push_back(m_combo);
-    parts.push_back(m_popup);
+    if (m_combo)
+        parts.push_back(m_combo);
+    if (m_popup)
+        parts.push_back(m_popup);
     return parts;
 }