diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-03-29 08:11:45 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-03-29 08:11:45 +0200 |
commit | eda1b68c2995a5636294a614248de332e1ec1780 (patch) | |
tree | 72fbdec2e29fac53768166987ce0ecc8848427fa /editeng | |
parent | ParaPortionList no longer a child class of DummyParaPortionList (diff) | |
download | core-eda1b68c2995a5636294a614248de332e1ec1780.tar.gz core-eda1b68c2995a5636294a614248de332e1ec1780.zip |
I assume the asserts are safer before non-checked access
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit5.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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 ) |