diff options
-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 87ed67f092fb..d5dfd0715144 100644 --- a/vcl/source/control/field2.cxx +++ b/vcl/source/control/field2.cxx @@ -1360,7 +1360,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 ); } |