]> source.dussan.org Git - poi.git/commitdiff
fix spelling
authorPJ Fanning <fanningpj@apache.org>
Sun, 27 May 2018 21:34:42 +0000 (21:34 +0000)
committerPJ Fanning <fanningpj@apache.org>
Sun, 27 May 2018 21:34:42 +0000 (21:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1832357 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java

index bb45f1cb3e31db9ea8be61cfba2a55068322b5a7..27b09d8ba2e1d65e4adaf97351a01555544848b6 100644 (file)
@@ -1504,14 +1504,14 @@ public class XWPFParagraph implements IBodyElement, IRunBody, ISDTContents, Para
                                     if (candCharPos + 1 < searched.length()) {
                                         candCharPos++;
                                     } else if (newList) {
-                                        TextSegment segement = new TextSegment();
-                                        segement.setBeginRun(beginRunPos);
-                                        segement.setBeginText(beginTextPos);
-                                        segement.setBeginChar(beginCharPos);
-                                        segement.setEndRun(runPos);
-                                        segement.setEndText(textPos);
-                                        segement.setEndChar(charPos);
-                                        return segement;
+                                        TextSegment segment = new TextSegment();
+                                        segment.setBeginRun(beginRunPos);
+                                        segment.setBeginText(beginTextPos);
+                                        segment.setBeginChar(beginCharPos);
+                                        segment.setEndRun(runPos);
+                                        segment.setEndText(textPos);
+                                        segment.setEndChar(charPos);
+                                        return segment;
                                     }
                                 } else {
                                     candCharPos = 0;