summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xmloff/source/core/xmlimp.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx
index 30e130b8f081..68ddd357b1bd 100644
--- a/xmloff/source/core/xmlimp.cxx
+++ b/xmloff/source/core/xmlimp.cxx
@@ -1312,7 +1312,9 @@ void SvXMLImport::AddStyleDisplayName( sal_uInt16 nFamily,
StyleMap::key_type aKey( nFamily, rName );
StyleMap::value_type aValue( aKey, rDisplayName );
::std::pair<StyleMap::iterator,bool> aRes( mpStyleMap->insert( aValue ) );
- OSL_ENSURE( aRes.second, "duplicate style name" );
+ SAL_WARN_IF( !aRes.second,
+ "xmloff",
+ "duplicate style name" );
}