Kaydet (Commit) 0cd3e819 authored tarafından Joren De Cuyper's avatar Joren De Cuyper Kaydeden (comit) Eike Rathke

fix if statement and translate German OSL_ENSURE

Change-Id: I3eefa563e00e6a4dcb3f1e5726bdf6d27f536624
Reviewed-on: https://gerrit.libreoffice.org/1960Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
Tested-by: 's avatarEike Rathke <erack@redhat.com>
üst a6ac6559
...@@ -1071,10 +1071,9 @@ void SwTxtNode::_ChgTxtCollUpdateNum( const SwTxtFmtColl *pOldColl, ...@@ -1071,10 +1071,9 @@ void SwTxtNode::_ChgTxtCollUpdateNum( const SwTxtFmtColl *pOldColl,
{ {
SetAttrListLevel(nNewLevel); SetAttrListLevel(nNewLevel);
} }
if (pDoc)
{ {
if (pDoc) pDoc->GetNodes().UpdateOutlineNode(*this);
pDoc->GetNodes().UpdateOutlineNode(*this);
} }
...@@ -3575,9 +3574,9 @@ void SwTxtNode::Modify( const SfxPoolItem* pOldValue, const SfxPoolItem* pNewVal ...@@ -3575,9 +3574,9 @@ void SwTxtNode::Modify( const SfxPoolItem* pOldValue, const SfxPoolItem* pNewVal
SwFmtColl* SwTxtNode::ChgFmtColl( SwFmtColl *pNewColl ) SwFmtColl* SwTxtNode::ChgFmtColl( SwFmtColl *pNewColl )
{ {
OSL_ENSURE( pNewColl,"ChgFmtColl: Collectionpointer ist 0." ); OSL_ENSURE( pNewColl,"ChgFmtColl: Collectionpointer has value 0." );
OSL_ENSURE( HAS_BASE( SwTxtFmtColl, pNewColl ), OSL_ENSURE( HAS_BASE( SwTxtFmtColl, pNewColl ),
"ChgFmtColl: ist kein Text-Collectionpointer." ); "ChgFmtColl: is not a Text Collection pointer." );
SwTxtFmtColl *pOldColl = GetTxtColl(); SwTxtFmtColl *pOldColl = GetTxtColl();
if( pNewColl != pOldColl ) if( pNewColl != pOldColl )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment