diff options
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/framework/module/SlideSorterModule.cxx | 3 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unomodel.cxx | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sd/source/ui/framework/module/SlideSorterModule.cxx b/sd/source/ui/framework/module/SlideSorterModule.cxx index 6b6987df2968..80e97aeb8022 100644 --- a/sd/source/ui/framework/module/SlideSorterModule.cxx +++ b/sd/source/ui/framework/module/SlideSorterModule.cxx @@ -81,8 +81,9 @@ SlideSorterModule::SlideSorterModule ( UpdateViewTabBar(nullptr); + static const bool bRunningUnitTest = getenv("LO_RUNNING_UNIT_TEST"); if (officecfg::Office::Impress::MultiPaneGUI::SlideSorterBar::Visible::ImpressView::get().value_or(true) - && (!getenv("LO_TESTNAME") || !comphelper::LibreOfficeKit::isActive())) + && (!bRunningUnitTest || !comphelper::LibreOfficeKit::isActive())) AddActiveMainView(FrameworkHelper::msImpressViewURL); if (officecfg::Office::Impress::MultiPaneGUI::SlideSorterBar::Visible::OutlineView::get().value_or(true)) AddActiveMainView(FrameworkHelper::msOutlineViewURL); diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index d30840feb64d..3bc5d96770e9 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -2779,7 +2779,8 @@ void SdXImpressDocument::initializeForTiledRendering(const css::uno::Sequence<cs auto xChanges = comphelper::ConfigurationChanges::create(); officecfg::Office::Common::Save::Document::WarnAlienFormat::set(false, xChanges); - if (!getenv("LO_TESTNAME") || !comphelper::LibreOfficeKit::isActive()) + static const bool bRunningUnitTest = getenv("LO_RUNNING_UNIT_TEST"); + if (!bRunningUnitTest || !comphelper::LibreOfficeKit::isActive()) officecfg::Office::Impress::MultiPaneGUI::SlideSorterBar::Visible::ImpressView::set(true,xChanges); xChanges->commit(); |