Kaydet (Commit) 115fd951 authored tarafından Michael Meeks's avatar Michael Meeks

Avoid loading persona images in headless mode.

Change-Id: Ie3bb69d93b97deab0830c2b45ba3428a8931a949
üst a2648efa
...@@ -2108,6 +2108,10 @@ static void setupPersonaHeaderFooter( WhichPersona eWhich, OUString& rHeaderFoot ...@@ -2108,6 +2108,10 @@ static void setupPersonaHeaderFooter( WhichPersona eWhich, OUString& rHeaderFoot
if ( !xContext.is() ) if ( !xContext.is() )
return; return;
// don't burn time loading images we don't need.
if ( Application::IsHeadlessModeEnabled() )
return;
// read from the configuration // read from the configuration
OUString aPersona( officecfg::Office::Common::Misc::Persona::get( xContext ) ); OUString aPersona( officecfg::Office::Common::Misc::Persona::get( xContext ) );
OUString aPersonaSettings( officecfg::Office::Common::Misc::PersonaSettings::get( xContext ) ); OUString aPersonaSettings( officecfg::Office::Common::Misc::PersonaSettings::get( xContext ) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment