]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed OpenWatcom (strange) scope related crash.
authorWłodzimierz Skiba <abx@abx.art.pl>
Fri, 26 May 2006 14:56:11 +0000 (14:56 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Fri, 26 May 2006 14:56:11 +0000 (14:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39346 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/datectrl.cpp

index 8602e3d966f77b1233b1e5a1cdfb7ff08e102527..f08a67a8d44a1c383652dda943d7c330c9cb0ac9 100644 (file)
@@ -314,6 +314,7 @@ wxDatePickerCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
     switch ( hdr->code )
     {
         case DTN_DATETIMECHANGE:
+        {
             NMDATETIMECHANGE *dtch = (NMDATETIMECHANGE *)hdr;
             wxDateTime dt;
             if ( dtch->dwFlags == GDT_VALID )
@@ -325,6 +326,7 @@ wxDatePickerCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
                 *result = 0;
                 return true;
             }
+        }
     }
 
     return wxDatePickerCtrlBase::MSWOnNotify(idCtrl, lParam, result);