]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/valgen.cpp
wxTextCtrk::GetRange() shouldn't crash on out of range request
[wxWidgets.git] / src / common / valgen.cpp
index 6fc3530c7d91d2d6068b33987ae5d5b717cd3663..37cefb5e74435debbe15ef6b5e633e0427c05140 100644 (file)
@@ -228,7 +228,7 @@ bool wxGenericValidator::TransferToWindow(void)
 #endif
 
     // date time controls
 #endif
 
     // date time controls
-#if wxUSE_DATEPICKCTRL
+#if 0 // wxUSE_DATEPICKCTRL -- temporary fix for shared build linking
     if (m_validatorWindow->IsKindOf(CLASSINFO(wxDatePickerCtrl)) )
     {
         wxDatePickerCtrl* pControl = (wxDatePickerCtrl*) m_validatorWindow;
     if (m_validatorWindow->IsKindOf(CLASSINFO(wxDatePickerCtrl)) )
     {
         wxDatePickerCtrl* pControl = (wxDatePickerCtrl*) m_validatorWindow;
@@ -370,7 +370,8 @@ bool wxGenericValidator::TransferToWindow(void)
         }
     } else
 #endif
         }
     } else
 #endif
-        ;   // to match the last 'else' above
+    {   // to match the last 'else' above
+    }
 
   // unrecognized control, or bad pointer
   return false;
 
   // unrecognized control, or bad pointer
   return false;
@@ -486,7 +487,7 @@ bool wxGenericValidator::TransferFromWindow(void)
 #endif
 
     // DATE TIME CONTROLS ************************************
 #endif
 
     // DATE TIME CONTROLS ************************************
-#if wxUSE_DATEPICKCTRL
+#if 0 // wxUSE_DATEPICKCTRL -- temporary fix for shared build linking
     if (m_validatorWindow->IsKindOf(CLASSINFO(wxDatePickerCtrl)) )
     {
         wxDatePickerCtrl* pControl = (wxDatePickerCtrl*) m_validatorWindow;
     if (m_validatorWindow->IsKindOf(CLASSINFO(wxDatePickerCtrl)) )
     {
         wxDatePickerCtrl* pControl = (wxDatePickerCtrl*) m_validatorWindow;