summaryrefslogtreecommitdiffstats
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-03-07 15:09:16 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-03-07 15:15:09 +0100
commitf5ef8396744966b9bd648bc0d1cb654db8c250be (patch)
tree008f24b1a0e28b070f1964d2f7a9f2831fd906a1 /sc
parentthere should be no need any more for this check (diff)
downloadcore-f5ef8396744966b9bd648bc0d1cb654db8c250be.tar.gz
core-f5ef8396744966b9bd648bc0d1cb654db8c250be.zip
export all row styles, fdo#44336
only exporting the used row styles is a loss of information since this means that all following rows use the height of the default row style # Changes to be committed:
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/xml/xmlexprt.cxx17
1 files changed, 3 insertions, 14 deletions
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx
index b246f737dfb0..6c9e7b812690 100644
--- a/sc/source/filter/xml/xmlexprt.cxx
+++ b/sc/source/filter/xml/xmlexprt.cxx
@@ -2449,16 +2449,10 @@ void ScXMLExport::_ExportAutoStyles()
{
sal_Int32 nRows(pDoc->GetLastChangedRow(sal::static_int_cast<SCTAB>(nTable)));
pSharedData->SetLastRow(nTable, nRows);
- table::CellRangeAddress aCellAddress(GetEndAddress(xTable, nTable));
- if (aCellAddress.EndRow > nRows)
- {
- ++nRows;
- pRowStyles->AddNewTable(nTable, aCellAddress.EndRow);
- }
- else
- pRowStyles->AddNewTable(nTable, nRows);
+
+ pRowStyles->AddNewTable(nTable, MAXROW);
sal_Int32 nRow = 0;
- while (nRow <= nRows && nRow <= MAXROW)
+ while (nRow <= MAXROW)
{
sal_Int32 nIndex = 0;
Reference <beans::XPropertySet> xRowProperties(xTableRows->getByIndex(nRow), uno::UNO_QUERY);
@@ -2472,11 +2466,6 @@ void ScXMLExport::_ExportAutoStyles()
if (nRow > nOld + 1)
pRowStyles->AddFieldStyleName(nTable, nOld + 1, nIndex, nRow - 1);
}
- if (aCellAddress.EndRow > nRows)
- {
- sal_Int32 nIndex(pRowStyles->GetStyleNameIndex(nTable, nRows));
- pRowStyles->AddFieldStyleName(nTable, nRows + 1, nIndex, aCellAddress.EndRow);
- }
}
}
}