summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/source/control/field2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/control/field2.cxx b/vcl/source/control/field2.cxx
index 725f697411b4..0ecd5761eb65 100644
--- a/vcl/source/control/field2.cxx
+++ b/vcl/source/control/field2.cxx
@@ -1365,7 +1365,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 );
}