vcl/source/control/field2.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 2c7f6b004cd04f427529968d004405b1a95f74bb
Author: Eike Rathke <[email protected]>
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 <[email protected]>
    Tested-by: Fridrich Strba <[email protected]>

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 );
 }
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to