Kaydet (Commit) 48264d6d authored tarafından Matteo Casalin's avatar Matteo Casalin

Improve formatting

Change-Id: I0cb8eb5b78ef5ca10d6b8765bff387ca09ec291c
üst 0215305c
...@@ -385,8 +385,8 @@ sal_uInt16 SwDoc::IsInsRegionAvailable( const SwPaM& rRange, ...@@ -385,8 +385,8 @@ sal_uInt16 SwDoc::IsInsRegionAvailable( const SwPaM& rRange,
if( rRange.HasMark() ) if( rRange.HasMark() )
{ {
// See if we have a valid Section // See if we have a valid Section
const SwPosition* pStt = rRange.Start(), const SwPosition* pStt = rRange.Start();
* pEnd = rRange.End(); const SwPosition* pEnd = rRange.End();
const SwCntntNode* pCNd = pEnd->nNode.GetNode().GetCntntNode(); const SwCntntNode* pCNd = pEnd->nNode.GetNode().GetCntntNode();
const SwNode* pNd = &pStt->nNode.GetNode(); const SwNode* pNd = &pStt->nNode.GetNode();
...@@ -397,9 +397,9 @@ sal_uInt16 SwDoc::IsInsRegionAvailable( const SwPaM& rRange, ...@@ -397,9 +397,9 @@ sal_uInt16 SwDoc::IsInsRegionAvailable( const SwPaM& rRange,
// Try to create an enclosing Section, but only if Start is // Try to create an enclosing Section, but only if Start is
// located at the Section's beginning and End at it's end // located at the Section's beginning and End at it's end
nRet = 0; nRet = 0;
if( !pStt->nContent.GetIndex() && pSectNd->GetIndex() if( !pStt->nContent.GetIndex()
== pStt->nNode.GetIndex() - 1 && pEnd->nContent.GetIndex() == && pSectNd->GetIndex() == pStt->nNode.GetIndex() - 1
pCNd->Len() ) && pEnd->nContent.GetIndex() == pCNd->Len() )
{ {
SwNodeIndex aIdx( pStt->nNode, -1 ); SwNodeIndex aIdx( pStt->nNode, -1 );
sal_uLong nCmp = pEnd->nNode.GetIndex(); sal_uLong nCmp = pEnd->nNode.GetIndex();
......
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