Apache OpenOffice (AOO) Bugzilla – Issue 15335
crash with -nogui (patch)
Last modified: 2003-09-08 16:53:51 UTC
When you run with -nogui you get a nice SEGV - this (trivial) patch fragment fixes it - nice to have the -nogui option in there though; extremely useful. Thanks: --- setup2/source/agenda/agenda.cxx 15 May 2003 09:39:26 -0000 1.80 +++ setup2/source/agenda/agenda.cxx 5 Jun 2003 13:45:41 -0000 @@ -2102,14 +2102,18 @@ void SiAgenda::PrintFoot(int nErrors) void SiAgenda::UpdateATToolSupport() { - AllSettings aAllSettings( Application::GetSettings() ); - MiscSettings aMiscSettings( aAllSettings.GetMiscSettings() ); + AllSettings aAllSettings( Application::GetSettings() ); + MiscSettings aMiscSettings( aAllSettings.GetMiscSettings() ); - // now we get the ATTool Settings - BOOL bEnable = aMiscSettings.GetEnableATToolSupport(); + // now we get the ATTool Settings + BOOL bEnable; + if( m_pEnv->HasVCL() ) + bEnable = aMiscSettings.GetEnableATToolSupport(); + else + bEnable = FALSE; m_pEnv->SetATToolSupport( bEnable ); - // and finaly change the Replacement - m_pEnv->UpdateReplacement( "<ATToolSupport>", m_pEnv->GetATToolSupport() ); + // and finaly change the Replacement + m_pEnv->UpdateReplacement( "<ATToolSupport>", m_pEnv->GetATToolSupport() ); }
Hi Dirk, please have a look at the patch.
fixed in cws srx645 vcl12
pl->of: patch should be applied in vcl12, please have a look
The patch is integrated in this cws.
Verified
No crash in 1.1 RC.