]> git.saurik.com Git - wxWidgets.git/commitdiff
Removed invalid use of sizeFlags parameter for SetSize call in generic calendar control.
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Sun, 17 Apr 2011 21:45:36 +0000 (21:45 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Sun, 17 Apr 2011 21:45:36 +0000 (21:45 +0000)
In r39715 the height parameter of a call to SetSize was changed to -1, however the previous coordinate value remained and became the fifth parameter which represents bit flags. Simply removed the fifth parameter.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/calctrlg.cpp

index bd6776ec806b98af2fb80d5aa4ae5a36c92015dc..1b67512a0271f77348fb979b395e143a760eeccd 100644 (file)
@@ -738,7 +738,7 @@ void wxGenericCalendarCtrl::DoMoveWindow(int x, int y, int width, int height)
 #else
         m_comboMonth->Move(x, y + (maxHeight - sizeCombo.y)/2);
 #endif
-        m_staticMonth->SetSize(x, y + dy, sizeCombo.x, -1, sizeStatic.y);
+        m_staticMonth->SetSize(x, y + dy, sizeCombo.x, -1);
 
         int xDiff = sizeCombo.x + HORZ_MARGIN;