summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorDaniel Bankston <daniel.e.bankston@gmail.com>2012-06-05 21:30:25 -0500
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-06-17 17:04:02 +0200
commite427f658195e9765e5eaad6c71a9f449cc83060c (patch)
tree1f969e560721cc37b94af1eaf42bfc46160d7eb7 /sc
parentf2bbf67cbb5ec099a8087f4dcd53faa1c1ca4b11 (diff)
Fix repeating columns
Change-Id: I35d8cc824bf7efceae6225432d5a261bd3883211
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/xml/xmlcelli.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/xml/xmlcelli.cxx b/sc/source/filter/xml/xmlcelli.cxx
index 952fc6619670..74f862ad6aa3 100644
--- a/sc/source/filter/xml/xmlcelli.cxx
+++ b/sc/source/filter/xml/xmlcelli.cxx
@@ -817,14 +817,14 @@ void ScXMLTableRowCellContext::EndElement()
for (SCCOL i = 0; i < nCellsRepeated; ++i)
{
- aScCurrentPos.SetCol( aScCurrentPos.Col() + i );
+ aScCurrentPos.SetCol( aScCellPos.Col() + i );
if (i > 0)
rTables.AddColumn(false);
if (!bIsEmpty)
{
for (SCROW j = 0; j < nRepeatedRows; ++j)
{
- aScCurrentPos.SetRow( aScCurrentPos.Row() + j );
+ aScCurrentPos.SetRow( aScCellPos.Row() + j );
if( (aScCurrentPos.Col() == 0) && (j > 0) )
{
rTables.AddRow();