sc/source/core/data/docpool.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit b9587cdb099f24d36e4f81685ef4cd0efef0bdba Author: Markus Mohrhard <markus.mohrh...@googlemail.com> Date: Wed Jun 28 16:49:42 2017 +0200 make it possible for calc tests to use ScDocument without BootstrapFixture Change-Id: Ie5fd57240ff3dbe8613ecb363331f7783dc08cf4 Reviewed-on: https://gerrit.libreoffice.org/39365 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrh...@googlemail.com> diff --git a/sc/source/core/data/docpool.cxx b/sc/source/core/data/docpool.cxx index f0845342489a..729ad9486e7f 100644 --- a/sc/source/core/data/docpool.cxx +++ b/sc/source/core/data/docpool.cxx @@ -195,6 +195,11 @@ ScDocumentPool::ScDocumentPool() aItemInfos, nullptr, false/*bLoadRefCounts*/ ), mnCurrentMaxKey(0) { + // this is a hack for unit tests that need to have a ScDocument + // but don't want to depend on BootstrapFixture + if (!pVersionMap1) + InitVersionMaps(); + // latin font from GetDefaultFonts is not used, DEFAULTFONT_LATIN_SPREADSHEET instead vcl::Font aStdFont = OutputDevice::GetDefaultFont( DefaultFontType::LATIN_SPREADSHEET, LANGUAGE_ENGLISH_US, GetDefaultFontFlags::OnlyOne ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits