summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-05-17 17:23:26 +0200
committerFridrich Strba <fridrich@documentfoundation.org>2013-05-17 15:41:06 +0000
commit145d46663e2d9872b42cd7d4b8f6f76d672a883f (patch)
tree4ed73c18db46a89cd64fa31a8e12c3c6a3f3c964
parentc04dc880044ca84b80bb13ac900de84ceae2a561 (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/3947 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
-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 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 );
}