diff options
author | Eike Rathke <erack@redhat.com> | 2013-05-17 17:23:26 +0200 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-05-17 15:40:50 +0000 |
commit | 2c7f6b004cd04f427529968d004405b1a95f74bb (patch) | |
tree | dd909750ee2564b49ccd0e1d0b77b7d96cfdb698 /vcl | |
parent | 11d2e8e03bafb4b256094194f5047764f5665868 (diff) |
obtain days in month from non-normalized date, fdo#63805 related
Change-Id: I05cefb96d7d6290ff7e1a89fa88b21da7a6c82a2
(cherry picked from commit 59d6bde4045e928b5d68fb23e3340fa0e48f3e33)
Reviewed-on: https://gerrit.libreoffice.org/3946
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'vcl')
-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 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 ); } |