From: Sergey Vladimirov Date: Tue, 12 Jul 2011 10:47:53 +0000 (+0000) Subject: fix Range::insertBefore() method result boundaries X-Git-Tag: REL_3_8_BETA4~192 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bd1e675b9a7d89de06b6a3f4f0df05986db395d1;p=poi.git fix Range::insert
Before() method result boundaries git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1145537 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java index 03a0deb032..ce9cb90820 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java @@ -629,7 +629,7 @@ public class Range { // TODO -instantiable superclass cell = cell.insertAfter(parProps, StyleSheet.NIL_STYLE, String.valueOf('\u0007')); cell.setTableRowEnd(props); } - return new Table(_start, _start + (rows * (columns + 1)), this, 1); + return new Table(_start, _start + (rows * (columns + 1)) * 2, this, 1); } /**