[Libreoffice-commits] core.git: Branch 'libreoffice-4-0' - vcl/source
Eike Rathke
erack at redhat.com
Fri May 17 08:41:12 PDT 2013
vcl/source/control/field2.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 2c7f6b004cd04f427529968d004405b1a95f74bb
Author: Eike Rathke <erack at redhat.com>
Date: Fri May 17 17:23:26 2013 +0200
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 at documentfoundation.org>
Tested-by: Fridrich Strba <fridrich at documentfoundation.org>
diff --git a/vcl/source/control/field2.cxx b/vcl/source/control/field2.cxx
index 725f697..0ecd576 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 );
}
More information about the Libreoffice-commits
mailing list