Avoid loading persona images in headless mode.

Change-Id: Ie3bb69d93b97deab0830c2b45ba3428a8931a949
This commit is contained in:
Michael Meeks
2014-06-26 12:06:52 +01:00
parent a2648efa67
commit 115fd951e9

View File

@@ -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 ) );