diff --git a/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java b/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java index 140de7215f..c7e211d145 100644 --- a/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java +++ b/src/ooxml/java/org/apache/poi/xssf/extractor/XSSFExportToXml.java @@ -446,7 +446,7 @@ public class XSSFExportToXml implements Comparator{ } if (elementValue.equals(rightWithoutNamespace)) { rightIndexOf = i; - indexMap.put(samePath+"/"+rightWithoutNamespace, leftIndexOf); + indexMap.put(samePath+"/"+rightWithoutNamespace, rightIndexOf); } } i++;