fix bug constraining elements once they are sliced

This commit is contained in:
Grahame Grieve 2020-05-28 14:07:26 +10:00
parent 998d1e0afc
commit c7258dc7eb
1 changed files with 1 additions and 1 deletions

View File

@ -1447,7 +1447,7 @@ public class ProfileUtilities extends TranslatingUtilities {
if (!diffMatches.get(0).hasSliceName()) { // it's not real content, just the slice
diffpos++;
}
if (hasInnerDiffMatches(differential, cpath, diffpos, diffLimit, base.getElement(), false)) {
if (hasInnerDiffMatches(differential, cpath, diffCursor, diffLimit, base.getElement(), false)) {
int nbl = findEndOfElement(base, baseCursor);
int ndx = differential.getElement().indexOf(diffMatches.get(0));
int ndc = ndx+(diffMatches.get(0).hasSlicing() ? 1 : 0);