diff options
Diffstat (limited to 'vcl/source/control/field2.cxx')
-rw-r--r-- | vcl/source/control/field2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/control/field2.cxx b/vcl/source/control/field2.cxx index e625a1f5641c..07992e5bdde0 100644 --- a/vcl/source/control/field2.cxx +++ b/vcl/source/control/field2.cxx @@ -1387,7 +1387,7 @@ static void ImplDateIncrementMonth( Date& rDate, sal_Bool bUp ) } } - sal_uInt16 nDaysInMonth = rDate.GetDaysInMonth(); + sal_uInt16 nDaysInMonth = Date::GetDaysInMonth( rDate.GetMonth(), rDate.GetYear()); if ( rDate.GetDay() > nDaysInMonth ) rDate.SetDay( nDaysInMonth ); } |