From e031e07dc9b349b163d577edc873798034e9b300 Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Tue, 12 Jul 2011 10:47:53 +0000 Subject: [PATCH] fix Range::insertBefore() method result boundaries git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1145537 13f79535-47bb-0310-9956-ffa450edef68 --- src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 03a0deb03..ce9cb9082 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); } /**