diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-13 11:27:57 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-13 11:28:56 +0000 |
commit | 2813632238380e0bfe40c0e6404a07102cde1398 (patch) | |
tree | b981a7000622d36d42d7cb740e039ae58c0a8068 /editeng | |
parent | 43fa2bcfecec0d1b7df3382cd69858bab4ffbca8 (diff) |
debugging assert about unsorted properties on loading ooo59216-14.ods
Change-Id: I30e7dcddcce188edef0d2affb148a3dba6f62c1d
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/editdoc.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx index 85419c6d6e3d..7ded8e74d116 100644 --- a/editeng/source/editeng/editdoc.cxx +++ b/editeng/source/editeng/editdoc.cxx @@ -1322,6 +1322,7 @@ void ContentNode::ExpandAttribs( sal_Int32 nIndex, sal_Int32 nNew, SfxItemPool& // Start <= nIndex, End >= nIndex => Start=End=nIndex! // if ( pAttrib->GetStart() == nIndex ) pAttrib->Expand( nNew ); + bResort = true; if ( pAttrib->GetStart() == 0 ) bExpandedEmptyAtIndexNull = true; } @@ -1455,7 +1456,10 @@ void ContentNode::CollapsAttribs( sal_Int32 nIndex, sal_Int32 nDeleted, SfxItemP // Special case: Attribute covers the area exactly // => keep as empty Attribute. if ( !pAttrib->IsFeature() && ( pAttrib->GetStart() == nIndex ) && ( pAttrib->GetEnd() == nEndChanges ) ) + { pAttrib->GetEnd() = nIndex; // empty + bResort = true; + } else bDelAttr = true; } |