diff options
author | Eike Rathke <erack@redhat.com> | 2014-05-05 18:18:57 +0100 |
---|---|---|
committer | Kohei Yoshida <libreoffice@kohei.us> | 2014-05-05 20:14:36 +0000 |
commit | 3efb6e5c35bb1129a78726b163f8fbf9bd94734a (patch) | |
tree | aa1dbdb3c86b87b644c49f67a4ba1e1ebd73ae03 /sc | |
parent | 206d59068e1293382a6d11b4caef7ebbd323fb86 (diff) |
resolved fdo#78294 default null-date for document import is 1899-12-30
Change-Id: I9dfe76d422ad732a081442b95a995d8d395a098e
(cherry picked from commit 571cefca474e6b77d68f9fa31f805dcf692927fd)
Reviewed-on: https://gerrit.libreoffice.org/9253
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
Tested-by: Kohei Yoshida <libreoffice@kohei.us>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/docshell/docsh3.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/ui/docshell/docsh3.cxx b/sc/source/ui/docshell/docsh3.cxx index fcb2760f8b52..42817ee00ac2 100644 --- a/sc/source/ui/docshell/docsh3.cxx +++ b/sc/source/ui/docshell/docsh3.cxx @@ -428,6 +428,12 @@ void ScDocShell::InitOptions(bool bForLoading) // called from InitNew and L // so it must not be taken from the global options. // Calculation settings are handled separately in ScXMLBodyContext::EndElement. aDocOpt.SetStdPrecision( SvNumberFormatter::UNLIMITED_PRECISION ); + + // fdo#78294 The default null-date if + // <table:null-date table:date-value='...' /> + // is absent is 1899-12-30 regardless what the configuration is set to. + // Import filters may override this value. + aDocOpt.SetDate( 30, 12, 1899); } aDocument.SetDocOptions( aDocOpt ); |