Avoid loading persona images in headless mode.
Change-Id: Ie3bb69d93b97deab0830c2b45ba3428a8931a949
This commit is contained in:
@@ -2108,6 +2108,10 @@ static void setupPersonaHeaderFooter( WhichPersona eWhich, OUString& rHeaderFoot
|
||||
if ( !xContext.is() )
|
||||
return;
|
||||
|
||||
// don't burn time loading images we don't need.
|
||||
if ( Application::IsHeadlessModeEnabled() )
|
||||
return;
|
||||
|
||||
// read from the configuration
|
||||
OUString aPersona( officecfg::Office::Common::Misc::Persona::get( xContext ) );
|
||||
OUString aPersonaSettings( officecfg::Office::Common::Misc::PersonaSettings::get( xContext ) );
|
||||
|
Reference in New Issue
Block a user