diff options
author | Eike Rathke <erack@redhat.com> | 2016-11-17 16:22:10 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-11-17 16:42:08 +0100 |
commit | 89ec8095c4a0f1497f4ca5778a210cb19d712330 (patch) | |
tree | 0bfa0d41448baebe50747d965710799ac52e1595 /xmloff | |
parent | e1b2af19329bcf7a0aa5e8f36cb7fe100147fab5 (diff) |
clearly a wrong offset is worth an assert() instead of OSL_ENSURE()
Change-Id: I2a4a8f054269df3ee085b9373f00bd749667665e
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/text/txtprmap.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/text/txtprmap.cxx b/xmloff/source/text/txtprmap.cxx index 04e004c38747..c34e644fdba9 100644 --- a/xmloff/source/text/txtprmap.cxx +++ b/xmloff/source/text/txtprmap.cxx @@ -1078,7 +1078,7 @@ static XMLPropertyMapEntry *lcl_txtprmap_getMap( TextPropMap nType ) // [XATTR_FILL_FIRST .. XATTR_FILL_LAST] and would be double since Shapes // already contain these (usually in aXMLSDProperties) pMap = &(aXMLParaPropMap[21]); - OSL_ENSURE( pMap->meXMLName == XML_MARGIN, "shape para map changed" ); + assert( pMap->meXMLName == XML_MARGIN && " shape para map changed" ); break; case TextPropMap::PARA: pMap = aXMLParaPropMap; @@ -1088,7 +1088,7 @@ static XMLPropertyMapEntry *lcl_txtprmap_getMap( TextPropMap nType ) break; case TextPropMap::AUTO_FRAME: pMap = &(aXMLFramePropMap[13]); - OSL_ENSURE( pMap->meXMLName == XML_MARGIN, "frame map changed" ); + assert( pMap->meXMLName == XML_MARGIN && " frame map changed" ); break; case TextPropMap::SHAPE: pMap = aXMLShapePropMap; |