[Libreoffice-commits] .: svl/source vcl/source
Eike Rathke
erack at kemper.freedesktop.org
Wed Nov 30 04:16:02 PST 2011
svl/source/items/dateitem.cxx | 2 +-
vcl/source/control/field2.cxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit c593018f6f2deec8eb98880ac89f19b59a3aee1f
Author: Eike Rathke <erack at redhat.com>
Date: Wed Nov 30 13:15:34 2011 +0100
no need to check for Gregorian cut-off date here
diff --git a/svl/source/items/dateitem.cxx b/svl/source/items/dateitem.cxx
index accd1cf..67ed229 100644
--- a/svl/source/items/dateitem.cxx
+++ b/svl/source/items/dateitem.cxx
@@ -148,7 +148,7 @@ SfxItemPresentation SfxDateTimeItem::GetPresentation
) const
{
DBG_CHKTHIS(SfxDateTimeItem, 0);
- if (aDateTime.IsValidAndGregorian())
+ if (aDateTime.IsValidDate())
if (pIntlWrapper)
{
rText = pIntlWrapper->getLocaleData()->getDate(aDateTime);
diff --git a/vcl/source/control/field2.cxx b/vcl/source/control/field2.cxx
index 5fadf7e..8705c6e 100644
--- a/vcl/source/control/field2.cxx
+++ b/vcl/source/control/field2.cxx
@@ -1309,7 +1309,7 @@ static sal_Bool ImplDateGetValue( const XubString& rStr, Date& rDate, ExtDateFie
Date aNewDate( nDay, nMonth, nYear );
DateFormatter::ExpandCentury( aNewDate, utl::MiscCfg().GetYear2000() );
- if ( aNewDate.IsValidAndGregorian() )
+ if ( aNewDate.IsValidDate() )
{
rDate = aNewDate;
return sal_True;
More information about the Libreoffice-commits
mailing list