From 159a99b6c0c7170e816396e575c8570bb0d5a936 Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Mon, 11 Jul 2011 20:53:35 +0000 Subject: [PATCH] extend TableRow from Range, not from Paragraph git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1145346 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/org/apache/poi/hwpf/usermodel/TableRow.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/TableRow.java b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/TableRow.java index b619a65d9a..bd41a339df 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/TableRow.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/TableRow.java @@ -20,11 +20,12 @@ package org.apache.poi.hwpf.usermodel; import java.util.ArrayList; import java.util.List; +import org.apache.poi.hwpf.sprm.SprmBuffer; import org.apache.poi.hwpf.sprm.TableSprmUncompressor; import org.apache.poi.util.POILogFactory; import org.apache.poi.util.POILogger; -public final class TableRow extends Paragraph +public final class TableRow extends Range { private static final POILogger logger = POILogFactory .getLogger( TableRow.class ); @@ -41,6 +42,7 @@ public final class TableRow extends Paragraph private boolean _cellsFound = false; int _levelNum; + private SprmBuffer _papx; private TableProperties _tprops; public TableRow( int startIdxInclusive, int endIdxExclusive, Table parent, @@ -48,7 +50,8 @@ public final class TableRow extends Paragraph { super( startIdxInclusive, endIdxExclusive, parent ); - _tprops = TableSprmUncompressor.uncompressTAP( _papx ); + Paragraph last = getParagraph( numParagraphs() - 1 ); + _tprops = TableSprmUncompressor.uncompressTAP( last._papx ); _levelNum = levelNum; initCells(); }