Skip to content

Commit b6b2129

Browse files
committed
Remove duplicate function invocation
DEVSIX-8836
1 parent 0626cd4 commit b6b2129

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

layout/src/main/java/com/itextpdf/layout/tagging/LayoutTaggingHelper.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,8 +663,9 @@ private void moveKidTagIfCreated(TaggingHintKey parentKey, TaggingHintKey kidKey
663663
return;
664664
}
665665

666-
int kidIndInParentKidsHint = getAccessibleKidsHint(parentKey).indexOf(kidKey);
667-
int ind = getNearestNextSiblingTagIndex(waitingTagsManager, parentPointer, getAccessibleKidsHint(parentKey), kidIndInParentKidsHint);
666+
List<TaggingHintKey> parentKidsHint = getAccessibleKidsHint(parentKey);
667+
int kidIndInParentKidsHint = parentKidsHint.indexOf(kidKey);
668+
int ind = getNearestNextSiblingTagIndex(waitingTagsManager, parentPointer, parentKidsHint, kidIndInParentKidsHint);
668669

669670
parentPointer.setNextNewKidIndex(ind);
670671
kidPointer.relocate(parentPointer);

0 commit comments

Comments
 (0)