[Libreoffice-commits] core.git: sc/source
Markus Mohrhard
markus.mohrhard at googlemail.com
Wed Jun 28 16:36:15 UTC 2017
sc/source/core/data/docpool.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit b9587cdb099f24d36e4f81685ef4cd0efef0bdba
Author: Markus Mohrhard <markus.mohrhard at 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 <ci at libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard at 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 );
More information about the Libreoffice-commits
mailing list