diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-03-07 15:09:16 +0100 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-03-07 12:15:52 -0500 |
commit | 766931e1de1adee987108d59d96431dc41cd2d96 (patch) | |
tree | a09c953b98d5b588df69c5770b4d0662694696f0 | |
parent | 33ef1ffbd15994ec71be99d38c0d5171c63344a2 (diff) |
export all row styles, fdo#46336
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:
Signed-off-by: Kohei Yoshida <kohei.yoshida@suse.com>
-rw-r--r-- | sc/source/filter/xml/xmlexprt.cxx | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx index 3ad8b8bab4f3..2c3e1c116595 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); - } } } } |