summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/core/nmspmap.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/core/nmspmap.cxx b/xmloff/source/core/nmspmap.cxx
index 78cf02744bce..c4c93425d99f 100644
--- a/xmloff/source/core/nmspmap.cxx
+++ b/xmloff/source/core/nmspmap.cxx
@@ -117,7 +117,7 @@ sal_uInt16 SvXMLNamespaceMap::AddIfKnown( const OUString& rPrefix, const OUStrin
{
sal_uInt16 nKey = GetKeyByName( rName );
- assert(XML_NAMESPACE_NONE);
+ assert(nKey != XML_NAMESPACE_NONE);
if( XML_NAMESPACE_NONE == nKey )
return XML_NAMESPACE_UNKNOWN;