summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-06-03 04:49:12 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-06-03 05:05:30 +0200
commit07e24af2801ae28a5552c4afc9ea3730aa00914c (patch)
treeb12091935bde70b80c713fcfccc39c171bbcf984
parent4e8d0a9efe4d549789995344c637bac5bede1893 (diff)
correct fix for fdo#62938
Change-Id: Ib8e5cf92d733bafaef7f9e0bb8e3bf823075f489
-rw-r--r--sc/source/filter/xml/xmlrowi.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/source/filter/xml/xmlrowi.cxx b/sc/source/filter/xml/xmlrowi.cxx
index 3fa6142091b3..efcc0e49bf66 100644
--- a/sc/source/filter/xml/xmlrowi.cxx
+++ b/sc/source/filter/xml/xmlrowi.cxx
@@ -231,13 +231,14 @@ ScXMLTableRowsContext::ScXMLTableRowsContext( ScXMLImport& rImport,
// don't have any attributes
if (bHeader)
{
- nHeaderStartRow = rImport.GetTables().GetCurrentRow();
+ ScAddress aAddr = rImport.GetTables().GetCurrentCellPos();
+ nHeaderStartRow = aAddr.Row();
++nHeaderStartRow;
}
else if (bGroup)
{
- nGroupStartRow = rImport.GetTables().GetCurrentRow();
- ++nGroupStartRow;
+ ScAddress aAddr = rImport.GetTables().GetCurrentCellPos();
+ nHeaderStartRow = aAddr.Row();
sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
for( sal_Int16 i=0; i < nAttrCount; ++i )
{