Kaydet (Commit) e37e8f38 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: fdo#86392 the assert seems to just want the attrs to be sorted

i.e. two at the same position is ok

assert added in

commit 8220b70f
Date:   Sun Jul 27 00:21:50 2014 -0400
    bnc#467459 - fix editeng text search with expanded fields.

Change-Id: Ifc65f3301a7d505a7d2d13e5914f53cbe263fc1f
üst 880f94b8
...@@ -1724,7 +1724,7 @@ void ContentNode::UnExpandPosition( sal_Int32 &rPos, bool bBiasStart ) ...@@ -1724,7 +1724,7 @@ void ContentNode::UnExpandPosition( sal_Int32 &rPos, bool bBiasStart )
{ {
const EditCharAttrib& rAttr = rAttrs[nAttr]; const EditCharAttrib& rAttr = rAttrs[nAttr];
assert (!(nAttr < rAttrs.size() - 1) || assert (!(nAttr < rAttrs.size() - 1) ||
rAttrs[nAttr].GetStart() < rAttrs[nAttr + 1].GetStart()); rAttrs[nAttr].GetStart() <= rAttrs[nAttr + 1].GetStart());
nOffset = rAttr.GetStart(); nOffset = rAttr.GetStart();
......
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