framework/source/helper/persistentwindowstate.cxx | 4 ---- framework/source/loadenv/loadenv.cxx | 6 +----- 2 files changed, 1 insertion(+), 9 deletions(-)
New commits: commit cede4a1af316b9a9e1928c71082448ff087d288b Author: Tor Lillqvist <t...@collabora.com> Date: Tue Feb 9 19:41:44 2016 +0200 Revert "tdf#97435: Avoid persistent window state crack when headless" The change caused failures in some Java unit tests. This reverts commit 882d27fce20ee0537f785a619be1dd065ea6bbca. diff --git a/framework/source/helper/persistentwindowstate.cxx b/framework/source/helper/persistentwindowstate.cxx index 5cfd0435..12bf95d 100644 --- a/framework/source/helper/persistentwindowstate.cxx +++ b/framework/source/helper/persistentwindowstate.cxx @@ -77,10 +77,6 @@ void SAL_CALL PersistentWindowState::initialize(const css::uno::Sequence< css::u void SAL_CALL PersistentWindowState::frameAction(const css::frame::FrameActionEvent& aEvent) throw(css::uno::RuntimeException, std::exception) { - // We don't want to do this stuff when in headless mode - if( Application::IsHeadlessModeEnabled() ) - return; - css::uno::Reference< css::uno::XComponentContext > xContext; css::uno::Reference< css::frame::XFrame > xFrame; bool bRestoreWindowState; diff --git a/framework/source/loadenv/loadenv.cxx b/framework/source/loadenv/loadenv.cxx index 5f2f95a..323926a 100644 --- a/framework/source/loadenv/loadenv.cxx +++ b/framework/source/loadenv/loadenv.cxx @@ -1724,11 +1724,7 @@ void LoadEnv::impl_applyPersistentWindowState(const css::uno::Reference< css::aw // and apply it on the window. // Do nothing, if no configuration entry exists! OUString sWindowState; - - // Don't look for persistent window attributes in headless mode - if( !Application::IsHeadlessModeEnabled() ) - comphelper::ConfigurationHelper::readRelativeKey(xModuleCfg, sModule, OFFICEFACTORY_PROPNAME_ASCII_WINDOWATTRIBUTES) >>= sWindowState; - + ::comphelper::ConfigurationHelper::readRelativeKey(xModuleCfg, sModule, OFFICEFACTORY_PROPNAME_ASCII_WINDOWATTRIBUTES) >>= sWindowState; if (!sWindowState.isEmpty()) { // SOLAR SAFE -> _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits