]> git.saurik.com Git - wxWidgets.git/commitdiff
add braces around if-body
authorPaul Cornett <paulcor@bullseye.com>
Thu, 19 Feb 2009 17:45:34 +0000 (17:45 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Thu, 19 Feb 2009 17:45:34 +0000 (17:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/calctrlg.cpp

index 21d116ccb13e46703dc989b03a6619e8c1a121c3..effd171d216f09cc9bb2fa30f8e9ce38d4d09fb9 100644 (file)
@@ -1564,6 +1564,7 @@ wxCalendarHitTestResult wxGenericCalendarCtrl::HitTest(const wxPoint& pos,
     }
 
     if ( pos.x - x0 < 0 )
+    {
         if ( pos.x >= 0 && pos.y > m_rowOffset + m_heightRow && pos.y <= m_rowOffset + m_heightRow * 7 )
         {
             if ( date )
@@ -1577,6 +1578,7 @@ wxCalendarHitTestResult wxGenericCalendarCtrl::HitTest(const wxPoint& pos,
         }
         else    // early exit -> the rest of the function checks for clicks on days
             return wxCAL_HITTEST_NOWHERE;
+    }
 
     // header: week days
     int wday = (pos.x - x0) / m_widthCol;