blob: 42bc46177737ba338403537d0c78d5c135b201a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
diff --git a/src/liborcus/orcus_gnumeric.cpp b/src/liborcus/orcus_gnumeric.cpp
index 76c13682..849759ba 100644
--- a/src/liborcus/orcus_gnumeric.cpp
+++ b/src/liborcus/orcus_gnumeric.cpp
@@ -144,6 +144,12 @@ void orcus_gnumeric::read_stream(std::string_view stream)
if (!decompress_gzip(stream.data(), stream.size(), file_content))
return;
+ if (auto* gs = mp_impl->mp_factory->get_global_settings(); gs)
+ {
+ gs->set_origin_date(1899, 12, 30);
+ gs->set_default_formula_grammar(spreadsheet::formula_grammar_t::gnumeric);
+ }
+
mp_impl->read_content_xml(file_content, get_config());
mp_impl->mp_factory->finalize();
}
|