From eda1b68c2995a5636294a614248de332e1ec1780 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Thu, 29 Mar 2012 08:11:45 +0200 Subject: I assume the asserts are safer before non-checked access --- editeng/source/editeng/impedit5.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'editeng') diff --git a/editeng/source/editeng/impedit5.cxx b/editeng/source/editeng/impedit5.cxx index bdaefbcb1802..4174ce05b47f 100644 --- a/editeng/source/editeng/impedit5.cxx +++ b/editeng/source/editeng/impedit5.cxx @@ -532,12 +532,12 @@ void ImpEditEngine::SetAttribs( EditSelection aSel, const SfxItemSet& rSet, sal_ sal_Bool bParaAttribFound = sal_False; sal_Bool bCharAttribFound = sal_False; + DBG_ASSERT( aEditDoc.SaveGetObject( nNode ), "Node not founden: SetAttribs" ); + DBG_ASSERT( GetParaPortions().SaveGetObject( nNode ), "Portion not found: SetAttribs" ); + ContentNode* pNode = aEditDoc.GetObject( nNode ); ParaPortion* pPortion = GetParaPortions()[nNode]; - DBG_ASSERT( aEditDoc.SaveGetObject( nNode ), "Node not founden: SetAttribs" ); - DBG_ASSERT( GetParaPortions()[ nNode ], "Portion not found: SetAttribs" ); - xub_StrLen nStartPos = 0; xub_StrLen nEndPos = pNode->Len(); if ( nNode == nStartNode ) -- cgit