summaryrefslogtreecommitdiff
path: root/uui/source/secmacrowarnings.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'uui/source/secmacrowarnings.cxx')
-rw-r--r--uui/source/secmacrowarnings.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/uui/source/secmacrowarnings.cxx b/uui/source/secmacrowarnings.cxx
index 2f987b241fe9..1f048f0cb663 100644
--- a/uui/source/secmacrowarnings.cxx
+++ b/uui/source/secmacrowarnings.cxx
@@ -158,21 +158,21 @@ void MacroWarning::SetStorage( const css::uno::Reference < css::embed::XStorage
mxStore = rxStore;
maODFVersion = aODFVersion;
sal_Int32 nCnt = rInfos.getLength();
- if( mxStore.is() && nCnt > 0 )
- {
- mpInfos = &rInfos;
- OUString aCN_Id("CN");
- OUStringBuffer s = GetContentPart( rInfos[ 0 ].Signer->getSubjectName(), aCN_Id );
+ if( !(mxStore.is() && nCnt > 0) )
+ return;
- for( sal_Int32 i = 1 ; i < nCnt ; ++i )
- {
- s.append("\n");
- s.append(GetContentPart( rInfos[ i ].Signer->getSubjectName(), aCN_Id ));
- }
+ mpInfos = &rInfos;
+ OUString aCN_Id("CN");
+ OUStringBuffer s = GetContentPart( rInfos[ 0 ].Signer->getSubjectName(), aCN_Id );
- mxSignsFI->set_label(s.makeStringAndClear());
- mxViewSignsBtn->set_sensitive(true);
+ for( sal_Int32 i = 1 ; i < nCnt ; ++i )
+ {
+ s.append("\n");
+ s.append(GetContentPart( rInfos[ i ].Signer->getSubjectName(), aCN_Id ));
}
+
+ mxSignsFI->set_label(s.makeStringAndClear());
+ mxViewSignsBtn->set_sensitive(true);
}
void MacroWarning::SetCertificate( const css::uno::Reference< css::security::XCertificate >& _rxCert )