]> source.dussan.org Git - poi.git/commitdiff
fix Range::insert<Table>Before() method result boundaries
authorSergey Vladimirov <sergey@apache.org>
Tue, 12 Jul 2011 10:47:53 +0000 (10:47 +0000)
committerSergey Vladimirov <sergey@apache.org>
Tue, 12 Jul 2011 10:47:53 +0000 (10:47 +0000)
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

index 03a0deb03275b2e5e4ff31d0cb21a9537afaefa6..ce9cb908203b46b5cf8633ed040a9df4ca0775d8 100644 (file)
@@ -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);
        }
 
        /**