diff options
author | Tor Lillqvist <tml@collabora.com> | 2017-08-10 17:13:45 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2017-08-11 17:16:28 +0300 |
commit | 244f60531260cf6e88e764b5c271d5c9183b5d1a (patch) | |
tree | 87b2ce51c670ce9e2fa438f99940c501d9557d50 /sc/source/core/tool/formulalogger.cxx | |
parent | f75f116a22480023aefa50ce6ec637a7e6d6f2e8 (diff) |
Add a unit test to be used to test parallelised calculations in Calc
Currently only tests SUMIFS.
Yes, it would be nice if some of the already existing unit tests would
work for this need, too. But there are various reasons wny not. Also,
don't want to interfere in ongoing work by others.
Change-Id: Ie9008a4a1a8c26eff4f2ab0bc91294b2239f0ae1
Diffstat (limited to 'sc/source/core/tool/formulalogger.cxx')
-rw-r--r-- | sc/source/core/tool/formulalogger.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/core/tool/formulalogger.cxx b/sc/source/core/tool/formulalogger.cxx index ff6964619024..3b12f09192b0 100644 --- a/sc/source/core/tool/formulalogger.cxx +++ b/sc/source/core/tool/formulalogger.cxx @@ -340,7 +340,9 @@ FormulaLogger::GroupScope FormulaLogger::enterGroup( // Get the file name if available. const SfxObjectShell* pShell = rDoc.GetDocumentShell(); const SfxMedium* pMedium = pShell->GetMedium(); - OUString aName = pMedium->GetURLObject().GetLastName(); + OUString aName; + if (pMedium) + aName = pMedium->GetURLObject().GetLastName(); if (aName.isEmpty()) aName = "-"; // unsaved document. |