Kaydet (Commit) 5832f347 authored tarafından Caolán McNamara's avatar Caolán McNamara

Related: fdo#40420 don't crash on missing/failing xmlsecurity lib

üst 3a53904a
...@@ -873,11 +873,17 @@ IMPL_LINK( SvxSecurityTabPage, ShowPasswordsHdl, PushButton*, EMPTYARG ) ...@@ -873,11 +873,17 @@ IMPL_LINK( SvxSecurityTabPage, ShowPasswordsHdl, PushButton*, EMPTYARG )
IMPL_LINK( SvxSecurityTabPage, MacroSecPBHdl, void*, EMPTYARG ) IMPL_LINK( SvxSecurityTabPage, MacroSecPBHdl, void*, EMPTYARG )
{ {
Reference< security::XDocumentDigitalSignatures > xD( try
comphelper::getProcessServiceFactory()->createInstance( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( "com.sun.star.security.DocumentDigitalSignatures" ) ) ), UNO_QUERY ); {
if ( xD.is() ) Reference< security::XDocumentDigitalSignatures > xD(
xD->manageTrustedSources(); comphelper::getProcessServiceFactory()->createInstance( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( "com.sun.star.security.DocumentDigitalSignatures" ) ) ), UNO_QUERY );
if ( xD.is() )
xD->manageTrustedSources();
}
catch (const Exception& e)
{
OSL_FAIL(rtl::OUStringToOString(e.Message, osl_getThreadTextEncoding()).getStr());
}
return 0; return 0;
} }
......
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