[Libreoffice-commits] core.git: sfx2/source
Stephan Bergmann
sbergman at redhat.com
Thu Jun 19 05:58:22 PDT 2014
sfx2/source/doc/docinf.cxx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit 7113db27f07ca03a468c94f1163a7aacd1e051e3
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Thu Jun 19 14:57:48 2014 +0200
GetFileTimeValue can produce a "null" DateTime
Change-Id: I96bf1aa2d889c4d0925d073d1d7b4be47c23b3ac
diff --git a/sfx2/source/doc/docinf.cxx b/sfx2/source/doc/docinf.cxx
index c540545..5e49437 100644
--- a/sfx2/source/doc/docinf.cxx
+++ b/sfx2/source/doc/docinf.cxx
@@ -108,7 +108,11 @@ sal_uInt32 SFX2_DLLPUBLIC LoadOlePropertySet(
i_xDocProps->setEditingCycles( nRevision );
}
- if( xGlobSect->GetFileTimeValue( aDateTime, PROPID_EDITTIME ) )
+ if( xGlobSect->GetFileTimeValue( aDateTime, PROPID_EDITTIME )
+ && !(aDateTime.NanoSeconds == 0 && aDateTime.Seconds == 0
+ && aDateTime.Minutes == 0 && aDateTime.Hours == 0
+ && aDateTime.Day == 0 && aDateTime.Month == 0
+ && aDateTime.Year == 0) )
{
// subtract offset 1601-01-01
aDateTime.Year -= 1601;
More information about the Libreoffice-commits
mailing list