summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
index 389469167200..8fd875f23cb9 100644
--- a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
+++ b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: digitalsignaturesdialog.cxx,v $
- * $Revision: 1.33 $
+ * $Revision: 1.34 $
*
* This file is part of OpenOffice.org.
*
@@ -95,10 +95,15 @@ namespace
if ( aValues[0] >>= nTmp )
m_nODF = nTmp;
else
- DBG_ASSERT(0, "SaveODFItem::SaveODFItem(): Wrong Type!" );
+ throw uno::RuntimeException(
+ OUString(RTL_CONSTASCII_USTRINGPARAM(
+ "[xmlsecurity]SaveODFItem::SaveODFItem(): Wrong Type!")), 0 );
+
}
else
- DBG_ASSERT(0, "No ODF/DefaultVersion");
+ throw uno::RuntimeException(
+ OUString(RTL_CONSTASCII_USTRINGPARAM(
+ "[xmlsecurity] Could not open property Office.Common/Save/ODF/DefaultVersion")), 0);
}
}