diff options
Diffstat (limited to 'xmloff/source/text')
-rw-r--r-- | xmloff/source/text/XMLIndexTabStopEntryContext.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/text/XMLIndexTemplateContext.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/text/XMLRedlineExport.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/text/XMLSectionFootnoteConfigExport.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/text/XMLTextFrameContext.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/text/XMLTextListAutoStylePool.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/text/XMLTextListBlockContext.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/text/XMLTextMasterPageExport.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/text/XMLTextNumRuleInfo.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/text/txtexppr.cxx | 6 | ||||
-rw-r--r-- | xmloff/source/text/txtflde.cxx | 16 | ||||
-rw-r--r-- | xmloff/source/text/txtftne.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/text/txtimp.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/text/txtparae.cxx | 36 | ||||
-rw-r--r-- | xmloff/source/text/txtprmap.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/text/txtstyli.cxx | 4 |
16 files changed, 46 insertions, 46 deletions
diff --git a/xmloff/source/text/XMLIndexTabStopEntryContext.cxx b/xmloff/source/text/XMLIndexTabStopEntryContext.cxx index 1822fd251b0a..b0f033407897 100644 --- a/xmloff/source/text/XMLIndexTabStopEntryContext.cxx +++ b/xmloff/source/text/XMLIndexTabStopEntryContext.cxx @@ -154,7 +154,7 @@ void XMLIndexTabStopEntryContext::FillPropertyValues( nNextEntry++; // check whether we really filled all elements of the sequence - DBG_ASSERT( nNextEntry == rValues.getLength(), + SAL_WARN_IF( nNextEntry != rValues.getLength(), "xmloff", "length incorrectly precumputed!" ); } diff --git a/xmloff/source/text/XMLIndexTemplateContext.cxx b/xmloff/source/text/XMLIndexTemplateContext.cxx index a60109e6bba4..669d5be79188 100644 --- a/xmloff/source/text/XMLIndexTemplateContext.cxx +++ b/xmloff/source/text/XMLIndexTemplateContext.cxx @@ -104,8 +104,8 @@ XMLIndexTemplateContext::XMLIndexTemplateContext( DBG_ASSERT( ((XML_TOKEN_INVALID != eLevelAttrName) && (nullptr != pLevelNameMap)) || ((XML_TOKEN_INVALID == eLevelAttrName) && (nullptr == pLevelNameMap)), "need both, attribute name and value map, or neither" ); - DBG_ASSERT( nullptr != pOutlineLevelStylePropMap, "need property name map" ); - DBG_ASSERT( nullptr != pAllowedTokenTypes, "need allowed tokens map" ); + SAL_WARN_IF( nullptr == pOutlineLevelStylePropMap, "xmloff", "need property name map" ); + SAL_WARN_IF( nullptr == pAllowedTokenTypes, "xmloff", "need allowed tokens map" ); // no map for outline-level? then use 1 if (nullptr == pLevelNameMap) diff --git a/xmloff/source/text/XMLRedlineExport.cxx b/xmloff/source/text/XMLRedlineExport.cxx index 0806958ca875..8a5a062c5cfc 100644 --- a/xmloff/source/text/XMLRedlineExport.cxx +++ b/xmloff/source/text/XMLRedlineExport.cxx @@ -592,7 +592,7 @@ void XMLRedlineExport::ExportStartOrEndRedline( if( bIdOK ) { - DBG_ASSERT( !sId.isEmpty(), "Redlines must have IDs" ); + SAL_WARN_IF( sId.isEmpty(), "xmloff", "Redlines must have IDs" ); // TODO: use GetRedlineID or eliminate that function OUStringBuffer sBuffer(sChangePrefix); diff --git a/xmloff/source/text/XMLSectionFootnoteConfigExport.cxx b/xmloff/source/text/XMLSectionFootnoteConfigExport.cxx index 2248f612ae82..4d2e3b21b866 100644 --- a/xmloff/source/text/XMLSectionFootnoteConfigExport.cxx +++ b/xmloff/source/text/XMLSectionFootnoteConfigExport.cxx @@ -89,7 +89,7 @@ void XMLSectionFootnoteConfigExport::exportXML( rState.maValue >>= sNumSuffix; break; case CTF_SECTION_FOOTNOTE_END: - DBG_ASSERT( i == nIdx, + SAL_WARN_IF( i != nIdx, "xmloff", "received wrong property state index" ); rState.maValue >>= bEnd; break; @@ -118,7 +118,7 @@ void XMLSectionFootnoteConfigExport::exportXML( rState.maValue >>= sNumSuffix; break; case CTF_SECTION_ENDNOTE_END: - DBG_ASSERT( i == nIdx, + SAL_WARN_IF( i != nIdx, "xmloff", "received wrong property state index" ); rState.maValue >>= bEnd; break; diff --git a/xmloff/source/text/XMLTextFrameContext.cxx b/xmloff/source/text/XMLTextFrameContext.cxx index d0cc7c1b9ab0..c304bfb74526 100644 --- a/xmloff/source/text/XMLTextFrameContext.cxx +++ b/xmloff/source/text/XMLTextFrameContext.cxx @@ -547,7 +547,7 @@ void XMLTextFrameContext_Impl::Create( bool /*bHRefOrBase64*/ ) case XML_TEXT_FRAME_GRAPHIC: sServiceName = sGraphicServiceName; break; } Reference<XInterface> xIfc = xFactory->createInstance( sServiceName ); - DBG_ASSERT( xIfc.is(), "couldn't create frame" ); + SAL_WARN_IF( !xIfc.is(), "xmloff", "couldn't create frame" ); if( xIfc.is() ) xPropSet.set( xIfc, UNO_QUERY ); } diff --git a/xmloff/source/text/XMLTextListAutoStylePool.cxx b/xmloff/source/text/XMLTextListAutoStylePool.cxx index 617e2092832c..10f5e6d17339 100644 --- a/xmloff/source/text/XMLTextListAutoStylePool.cxx +++ b/xmloff/source/text/XMLTextListAutoStylePool.cxx @@ -258,7 +258,7 @@ void XMLTextListAutoStylePool::exportXML() const for( i=0; i < nCount; i++ ) { XMLTextListAutoStylePoolEntry_Impl *pEntry = (*pPool)[i]; - DBG_ASSERT( pEntry->GetPos() < nCount, "Illegal pos" ); + SAL_WARN_IF( pEntry->GetPos() >= nCount, "xmloff", "Illegal pos" ); aExpEntries[pEntry->GetPos()] = pEntry; } diff --git a/xmloff/source/text/XMLTextListBlockContext.cxx b/xmloff/source/text/XMLTextListBlockContext.cxx index e0e0a63f9068..757676d62b1a 100644 --- a/xmloff/source/text/XMLTextListBlockContext.cxx +++ b/xmloff/source/text/XMLTextListBlockContext.cxx @@ -149,7 +149,7 @@ XMLTextListBlockContext::XMLTextListBlockContext( { xNumRuleProps->getPropertyValue(s_PropNameDefaultListId) >>= sListStyleDefaultListId; - DBG_ASSERT( !sListStyleDefaultListId.isEmpty(), + SAL_WARN_IF( sListStyleDefaultListId.isEmpty(), "xmloff", "no default list id found at numbering rules instance. Serious defect." ); } } diff --git a/xmloff/source/text/XMLTextMasterPageExport.cxx b/xmloff/source/text/XMLTextMasterPageExport.cxx index a5ad798d7bc7..fa82c6ee667a 100644 --- a/xmloff/source/text/XMLTextMasterPageExport.cxx +++ b/xmloff/source/text/XMLTextMasterPageExport.cxx @@ -57,7 +57,7 @@ void XMLTextMasterPageExport::exportHeaderFooterContent( const Reference< XText >& rText, bool bAutoStyles, bool bExportParagraph ) { - DBG_ASSERT( rText.is(), "There is the text" ); + SAL_WARN_IF( !rText.is(), "xmloff", "There is the text" ); // tracked changes (autostyles + changes list) GetExport().GetTextParagraphExport()->recordTrackedChangesForXText(rText); diff --git a/xmloff/source/text/XMLTextNumRuleInfo.cxx b/xmloff/source/text/XMLTextNumRuleInfo.cxx index 1f4e60f0278d..e5503aed756e 100644 --- a/xmloff/source/text/XMLTextNumRuleInfo.cxx +++ b/xmloff/source/text/XMLTextNumRuleInfo.cxx @@ -134,14 +134,14 @@ void XMLTextNumRuleInfo::Set( if ( msNumRulesName.isEmpty() ) { Reference < XNamed > xNamed( mxNumRules, UNO_QUERY ); - DBG_ASSERT( xNamed.is(), + SAL_WARN_IF( !xNamed.is(), "xmloff", "<XMLTextNumRuleInfo::Set(..)> - numbering rules instance have to be named. Serious defect." ); if( xNamed.is() ) { msNumRulesName = xNamed->getName(); } } - DBG_ASSERT( !msNumRulesName.isEmpty(), + SAL_WARN_IF( msNumRulesName.isEmpty(), "xmloff", "<XMLTextNumRuleInfo::Set(..)> - no name found for numbering rules instance. Serious defect." ); if( xPropSetInfo->hasPropertyByName( msPropNameListId ) ) diff --git a/xmloff/source/text/txtexppr.cxx b/xmloff/source/text/txtexppr.cxx index 4ebf531a4711..71131c2fb4e8 100644 --- a/xmloff/source/text/txtexppr.cxx +++ b/xmloff/source/text/txtexppr.cxx @@ -148,11 +148,11 @@ void XMLTextExportPropertySetMapper::handleSpecialItem( switch( getPropertySetMapper()->GetEntryContextId( rProperty.mnIndex ) ) { case CTF_DROPCAPWHOLEWORD: - DBG_ASSERT( !bDropWholeWord, "drop whole word is set already!" ); + SAL_WARN_IF( !!bDropWholeWord, "xmloff", "drop whole word is set already!" ); pThis->bDropWholeWord = *o3tl::doAccess<bool>(rProperty.maValue); break; case CTF_DROPCAPCHARSTYLE: - DBG_ASSERT( sDropCharStyle.isEmpty(), "drop char style is set already!" ); + SAL_WARN_IF( !sDropCharStyle.isEmpty(), "xmloff", "drop char style is set already!" ); rProperty.maValue >>= pThis->sDropCharStyle; break; case CTF_NUMBERINGSTYLENAME: @@ -1172,7 +1172,7 @@ bool lcl_IsOutlineStyle(const SvXMLExport &rExport, const OUString & rName) { Reference<XPropertySet> xNumRule( xCNSupplier->getChapterNumberingRules(), UNO_QUERY ); - DBG_ASSERT( xNumRule.is(), "no chapter numbering rules" ); + SAL_WARN_IF( !xNumRule.is(), "xmloff", "no chapter numbering rules" ); if (xNumRule.is()) { xNumRule->getPropertyValue("Name") >>= sOutlineName; diff --git a/xmloff/source/text/txtflde.cxx b/xmloff/source/text/txtflde.cxx index aee0f3a7b099..3b7028a5d8da 100644 --- a/xmloff/source/text/txtflde.cxx +++ b/xmloff/source/text/txtflde.cxx @@ -2447,7 +2447,7 @@ void XMLTextFieldExport::ProcessDisplay(bool bIsVisible, void XMLTextFieldExport::ProcessBoolean(enum XMLTokenEnum eName, bool bBool, bool bDefault) { - DBG_ASSERT( eName != XML_TOKEN_INVALID, "invalid element token"); + SAL_WARN_IF( eName == XML_TOKEN_INVALID, "xmloff", "invalid element token"); if ( XML_TOKEN_INVALID == eName ) return; @@ -2466,7 +2466,7 @@ void XMLTextFieldExport::ProcessString(enum XMLTokenEnum eName, bool bOmitEmpty, sal_uInt16 nPrefix) { - DBG_ASSERT( eName != XML_TOKEN_INVALID, "invalid element token"); + SAL_WARN_IF( eName == XML_TOKEN_INVALID, "xmloff", "invalid element token"); if ( XML_TOKEN_INVALID == eName ) return; @@ -2517,8 +2517,8 @@ void XMLTextFieldExport::ProcessString( enum XMLTokenEnum eValue, sal_uInt16 nPrefix) { - DBG_ASSERT( eName != XML_TOKEN_INVALID, "invalid element token" ); - DBG_ASSERT( eValue != XML_TOKEN_INVALID, "invalid value token" ); + SAL_WARN_IF( eName == XML_TOKEN_INVALID, "xmloff", "invalid element token" ); + SAL_WARN_IF( eValue == XML_TOKEN_INVALID, "xmloff", "invalid value token" ); if ( XML_TOKEN_INVALID == eName ) return; @@ -2556,7 +2556,7 @@ void XMLTextFieldExport::ProcessParagraphSequence( void XMLTextFieldExport::ProcessInteger(enum XMLTokenEnum eName, sal_Int32 nNum) { - DBG_ASSERT( eName != XML_TOKEN_INVALID, "invalid element token"); + SAL_WARN_IF( eName == XML_TOKEN_INVALID, "xmloff", "invalid element token"); if ( XML_TOKEN_INVALID == eName ) return; @@ -2802,9 +2802,9 @@ void XMLTextFieldExport::ExportDataBaseElement( const Reference<XPropertySet>& rPropertySet, const Reference<XPropertySetInfo>& rPropertySetInfo ) { - DBG_ASSERT( eElementName != XML_TOKEN_INVALID, "need token" ); - DBG_ASSERT( rPropertySet.is(), "need property set" ); - DBG_ASSERT( rPropertySetInfo.is(), "need property set info" ); + SAL_WARN_IF( eElementName == XML_TOKEN_INVALID, "xmloff", "need token" ); + SAL_WARN_IF( !rPropertySet.is(), "xmloff", "need property set" ); + SAL_WARN_IF( !rPropertySetInfo.is(), "xmloff", "need property set info" ); // get database properties OUString sDataBaseName; diff --git a/xmloff/source/text/txtftne.cxx b/xmloff/source/text/txtftne.cxx index c80caa98dbc7..18333c9bb3de 100644 --- a/xmloff/source/text/txtftne.cxx +++ b/xmloff/source/text/txtftne.cxx @@ -234,7 +234,7 @@ static void lcl_exportString( bool bEncodeName, bool bOmitIfEmpty) { - DBG_ASSERT( eElement != XML_TOKEN_INVALID, "need element token"); + SAL_WARN_IF( eElement == XML_TOKEN_INVALID, "xmloff", "need element token"); Any aAny = rPropSet->getPropertyValue(sProperty); OUString sTmp; diff --git a/xmloff/source/text/txtimp.cxx b/xmloff/source/text/txtimp.cxx index 5d6abd997ebf..9fb143c65887 100644 --- a/xmloff/source/text/txtimp.cxx +++ b/xmloff/source/text/txtimp.cxx @@ -929,7 +929,7 @@ XMLTextImportHelper::XMLTextImportHelper( } Reference< XStyleFamiliesSupplier > xFamiliesSupp( rModel, UNO_QUERY ); -// DBG_ASSERT( xFamiliesSupp.is(), "no chapter numbering supplier" ); for clipboard there may be documents without styles +// SAL_WARN_IF( !xFamiliesSupp.is(), "xmloff", "no chapter numbering supplier" ); for clipboard there may be documents without styles if( xFamiliesSupp.is() ) { diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx index 4c3aa297a7dc..147d56531269 100644 --- a/xmloff/source/text/txtparae.cxx +++ b/xmloff/source/text/txtparae.cxx @@ -468,7 +468,7 @@ void XMLTextParagraphExport::Add( sal_uInt16 nFamily, xPropMapper = GetRubyPropMapper(); break; } - DBG_ASSERT( xPropMapper.is(), "There is the property mapper?" ); + SAL_WARN_IF( !xPropMapper.is(), "xmloff", "There is the property mapper?" ); vector< XMLPropertyState > aPropStates = xPropMapper->Filter( rPropSet ); @@ -599,7 +599,7 @@ void XMLTextParagraphExport::Add( sal_uInt16 nFamily, xPropMapper = GetParaPropMapper(); break; } - DBG_ASSERT( xPropMapper.is(), "There is the property mapper?" ); + SAL_WARN_IF( !xPropMapper.is(), "xmloff", "There is the property mapper?" ); vector< XMLPropertyState > aPropStates(xPropMapper->Filter( rPropSet )); @@ -693,7 +693,7 @@ OUString XMLTextParagraphExport::Find( xPropMapper = GetRubyPropMapper(); break; } - DBG_ASSERT( xPropMapper.is(), "There is the property mapper?" ); + SAL_WARN_IF( !xPropMapper.is(), "xmloff", "There is the property mapper?" ); if( !xPropMapper.is() ) return sName; vector< XMLPropertyState > aPropStates(xPropMapper->Filter( rPropSet )); @@ -806,7 +806,7 @@ void XMLTextParagraphExport::exportListChange( else if ( rPrevInfo.GetLevel() > rNextInfo.GetLevel() ) { // close corresponding sub lists - DBG_ASSERT( rNextInfo.GetLevel() > 0, + SAL_WARN_IF( rNextInfo.GetLevel() <= 0, "xmloff", "<rPrevInfo.GetLevel() > 0> not hold. Serious defect." ); nListLevelsToBeClosed = rPrevInfo.GetLevel() - rNextInfo.GetLevel(); } @@ -851,7 +851,7 @@ void XMLTextParagraphExport::exportListChange( else if ( rNextInfo.GetLevel() > rPrevInfo.GetLevel() ) { // open corresponding sub lists - DBG_ASSERT( rPrevInfo.GetLevel() > 0, + SAL_WARN_IF( rPrevInfo.GetLevel() <= 0, "xmloff", "<rPrevInfo.GetLevel() > 0> not hold. Serious defect." ); nListLevelsToBeOpened = rNextInfo.GetLevel() - rPrevInfo.GetLevel(); } @@ -1324,7 +1324,7 @@ XMLTextParagraphExport::~XMLTextParagraphExport() txtparae_bContainsIllegalCharacters = false; #endif PopTextListsHelper(); - DBG_ASSERT( maTextListsHelperStack.empty(), + SAL_WARN_IF( !maTextListsHelperStack.empty(), "xmloff", "misusage of text lists helper stack - it is not empty. Serious defect" ); } @@ -1648,7 +1648,7 @@ void XMLTextParagraphExport::exportText( // #97718# footnotes don't supply paragraph enumerations in some cases // This is always a bug, but at least we don't want to crash. - DBG_ASSERT( xParaEnum.is(), "We need a paragraph enumeration" ); + SAL_WARN_IF( !xParaEnum.is(), "xmloff", "We need a paragraph enumeration" ); if( ! xParaEnum.is() ) return; @@ -1733,7 +1733,7 @@ bool XMLTextParagraphExport::exportTextContentEnumeration( const Reference < XPropertySet > *pRangePropSet, bool bExportLevels, TextPNS eExtensionNS ) { - DBG_ASSERT( rContEnum.is(), "No enumeration to export!" ); + SAL_WARN_IF( !rContEnum.is(), "xmloff", "No enumeration to export!" ); bool bHasMoreElements = rContEnum->hasMoreElements(); if( !bHasMoreElements ) return false; @@ -1866,7 +1866,7 @@ bool XMLTextParagraphExport::exportTextContentEnumeration( } else { - DBG_ASSERT( !xTxtCntnt.is(), "unknown text content" ); + SAL_WARN_IF( xTxtCntnt.is(), "xmloff", "unknown text content" ); } if( !bAutoStyles ) @@ -2026,7 +2026,7 @@ void XMLTextParagraphExport::exportParagraph( if (xCNSupplier.is()) { Reference< XIndexReplace > xNumRule ( xCNSupplier->getChapterNumberingRules() ); - DBG_ASSERT( xNumRule.is(), "no chapter numbering rules" ); + SAL_WARN_IF( !xNumRule.is(), "xmloff", "no chapter numbering rules" ); if (xNumRule.is()) { @@ -2427,7 +2427,7 @@ void XMLTextParagraphExport::exportTextRangeEnumeration( } // now that there are nested enumerations for meta(-field), this may be valid! -// DBG_ASSERT( !bOpenRuby, "Red Alert: Ruby still open!" ); +// SAL_WARN_IF( bOpenRuby, "xmloff", "Red Alert: Ruby still open!" ); } void XMLTextParagraphExport::exportTable( @@ -2445,7 +2445,7 @@ void XMLTextParagraphExport::exportTextField( if (xPropSet->getPropertySetInfo()->hasPropertyByName( sTextField )) { Reference < XTextField > xTxtFld(xPropSet->getPropertyValue( sTextField ), uno::UNO_QUERY); - DBG_ASSERT( xTxtFld.is(), "text field missing" ); + SAL_WARN_IF( !xTxtFld.is(), "xmloff", "text field missing" ); if( xTxtFld.is() ) { exportTextField(xTxtFld, bAutoStyles, bIsProgress, true); @@ -2681,7 +2681,7 @@ XMLShapeExportFlags XMLTextParagraphExport::addTextFrameAttributes( { sal_Int16 nRelWidth = 0; rPropSet->getPropertyValue( sRelativeWidth ) >>= nRelWidth; - DBG_ASSERT( nRelWidth >= 0 && nRelWidth <= 254, + SAL_WARN_IF( nRelWidth < 0 || nRelWidth > 254, "xmloff", "Got illegal relative width from API" ); if( nRelWidth > 0 ) { @@ -3436,7 +3436,7 @@ void XMLTextParagraphExport::exportText( const OUString& rText, // the text that has not been exported by now has to be exported now. if( nPos > nExpStartPos && !bExpCharAsText ) { - DBG_ASSERT( 0==nSpaceChars, "pending spaces" ); + SAL_WARN_IF( 0 != nSpaceChars, "xmloff", "pending spaces" ); OUString sExp( rText.copy( nExpStartPos, nPos - nExpStartPos ) ); GetExport().Characters( sExp ); nExpStartPos = nPos; @@ -3447,7 +3447,7 @@ void XMLTextParagraphExport::exportText( const OUString& rText, // exported now. if( nSpaceChars > 0 && !bCurrCharIsSpace ) { - DBG_ASSERT( nExpStartPos == nPos, " pending characters" ); + SAL_WARN_IF( nExpStartPos != nPos, "xmloff", " pending characters" ); if( nSpaceChars > 1 ) { @@ -3497,14 +3497,14 @@ void XMLTextParagraphExport::exportText( const OUString& rText, // position for text is the position behind the current position. if( !bExpCharAsText ) { - DBG_ASSERT( nExpStartPos == nPos, "wrong export start pos" ); + SAL_WARN_IF( nExpStartPos != nPos, "xmloff", "wrong export start pos" ); nExpStartPos = nPos+1; } } if( nExpStartPos < nEndPos ) { - DBG_ASSERT( 0==nSpaceChars, " pending spaces " ); + SAL_WARN_IF( 0 != nSpaceChars, "xmloff", " pending spaces " ); OUString sExp( rText.copy( nExpStartPos, nEndPos - nExpStartPos ) ); GetExport().Characters( sExp ); } @@ -3751,7 +3751,7 @@ void XMLTextParagraphExport::PreventExportOfControlsInMuteSections( // if we don't have shapes or a form export, there's nothing to do return; } - DBG_ASSERT( pSectionExport != nullptr, "We need the section export." ); + SAL_WARN_IF( pSectionExport == nullptr, "xmloff", "We need the section export." ); Reference<XEnumeration> xShapesEnum = pBoundFrameSets->GetShapes()->createEnumeration(); if(!xShapesEnum.is()) diff --git a/xmloff/source/text/txtprmap.cxx b/xmloff/source/text/txtprmap.cxx index 447662a0f5a7..dc60fae7fb8d 100644 --- a/xmloff/source/text/txtprmap.cxx +++ b/xmloff/source/text/txtprmap.cxx @@ -1037,7 +1037,7 @@ static XMLPropertyMapEntry *lcl_txtprmap_getMap( TextPropMap nType ) pMap = aXMLTableRowDefaultsMap; break; } - DBG_ASSERT( pMap, "illegal map type" ); + SAL_WARN_IF( !pMap, "xmloff", "illegal map type" ); return pMap; } diff --git a/xmloff/source/text/txtstyli.cxx b/xmloff/source/text/txtstyli.cxx index a1f147d99789..75be7fc4e66d 100644 --- a/xmloff/source/text/txtstyli.cxx +++ b/xmloff/source/text/txtstyli.cxx @@ -496,7 +496,7 @@ void XMLTextStyleContext::FillPropertySet( if(IsDefaultStyle() && XML_STYLE_FAMILY_TABLE_ROW == GetFamily()) { OUString sIsSplitAllowed("IsSplitAllowed"); - DBG_ASSERT( rPropSet->getPropertySetInfo()->hasPropertyByName( sIsSplitAllowed ), "property missing?" ); + SAL_WARN_IF( !rPropSet->getPropertySetInfo()->hasPropertyByName( sIsSplitAllowed ), "xmloff", "property missing?" ); rPropSet->setPropertyValue( sIsSplitAllowed, (aContextIDs[1].nIndex == -1) ? makeAny( false ) : GetProperties()[aContextIDs[1].nIndex].maValue ); @@ -505,7 +505,7 @@ void XMLTextStyleContext::FillPropertySet( if(IsDefaultStyle() && XML_STYLE_FAMILY_TABLE_TABLE == GetFamily()) { OUString sCollapsingBorders("CollapsingBorders"); - DBG_ASSERT( rPropSet->getPropertySetInfo()->hasPropertyByName( sCollapsingBorders ), "property missing?" ); + SAL_WARN_IF( !rPropSet->getPropertySetInfo()->hasPropertyByName( sCollapsingBorders ), "xmloff", "property missing?" ); rPropSet->setPropertyValue( sCollapsingBorders, (aContextIDs[2].nIndex == -1) |