summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-05-17 17:23:26 +0200
committerEike Rathke <erack@redhat.com>2013-05-17 17:26:08 +0200
commit59d6bde4045e928b5d68fb23e3340fa0e48f3e33 (patch)
tree2e29a6f1205d77d5d5edca39e8ac10cfb8106131 /vcl/source
parent33e0e0d843cd9ad0b7e698f9a3273af1ba78aa8c (diff)
obtain days in month from non-normalized date, fdo#63805 related
Change-Id: I05cefb96d7d6290ff7e1a89fa88b21da7a6c82a2
Diffstat (limited to 'vcl/source')
-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 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 );
}