diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-09-07 09:08:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-09-08 08:33:46 +0200 |
commit | 17b1bbb548cd193cde68a35b84d1ace6452e7036 (patch) | |
tree | 8d4f532850837a55abc56814c39d8f9289db593e /editeng | |
parent | 6ccb82ddf302acbd56bd4ea67fce107883e5391c (diff) |
improve comment grammar
Change-Id: Ic7da4b4d67bb006290af6c7b9e5d084d13b6ca98
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editdoc.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx index 458dc14bf610..12e36a397b9f 100644 --- a/editeng/source/editeng/editdoc.cxx +++ b/editeng/source/editeng/editdoc.cxx @@ -1276,8 +1276,7 @@ void ContentNode::ExpandAttribs( sal_Int32 nIndex, sal_Int32 nNew, SfxItemPool& #endif // Since features are treated differently than normal character attributes, - // can also the order of the start list be change! - // In every if ..., in the next (n) opportunities due to bFeature or + // but can also affect the order of the start list. // In every if ..., in the next (n) opportunities due to bFeature or // an existing special case, must (n-1) opportunities be provided with // bResort. The most likely possibility receives no bResort, so that is // not sorted anew when all attributes are the same. @@ -1417,7 +1416,7 @@ void ContentNode::CollapsAttribs( sal_Int32 nIndex, sal_Int32 nDeleted, SfxItemP #endif // Since features are treated differently than normal character attributes, - // can also the order of the start list be change! + // but can also affect the order of the start list bool bResort = false; sal_Int32 nEndChanges = nIndex+nDeleted; @@ -1474,8 +1473,8 @@ void ContentNode::CollapsAttribs( sal_Int32 nIndex, sal_Int32 nDeleted, SfxItemP } DBG_ASSERT( !pAttrib->IsFeature() || ( pAttrib->GetLen() == 1 ), "Expand: FeaturesLen != 1" ); - DBG_ASSERT( pAttrib->GetStart() <= pAttrib->GetEnd(), "Collaps: Attribut distorted!" ); - DBG_ASSERT( ( pAttrib->GetEnd() <= Len()) || bDelAttr, "Collaps: Attribute larger than paragraph!" ); + DBG_ASSERT( pAttrib->GetStart() <= pAttrib->GetEnd(), "Collapse: Attribute distorted!" ); + DBG_ASSERT( ( pAttrib->GetEnd() <= Len()) || bDelAttr, "Collapse: Attribute larger than paragraph!" ); if ( bDelAttr ) { bResort = true; |