summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-03-29 08:11:45 +0200
committerLuboš Luňák <l.lunak@suse.cz>2012-03-29 08:11:45 +0200
commiteda1b68c2995a5636294a614248de332e1ec1780 (patch)
tree72fbdec2e29fac53768166987ce0ecc8848427fa
parent39fb17daf029ac51480a7f49b764b238eb3c7e19 (diff)
I assume the asserts are safer before non-checked access
-rw-r--r--editeng/source/editeng/impedit5.cxx6
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 )