diff options
-rw-r--r-- | sc/source/core/data/table5.cxx | 12 | ||||
-rw-r--r-- | sc/source/filter/xml/cachedattraccess.cxx | 6 |
2 files changed, 15 insertions, 3 deletions
diff --git a/sc/source/core/data/table5.cxx b/sc/source/core/data/table5.cxx index 7f75c960bcc5..f8e312af6aef 100644 --- a/sc/source/core/data/table5.cxx +++ b/sc/source/core/data/table5.cxx @@ -580,6 +580,12 @@ bool ScTable::SetRowHidden(SCROW nStartRow, SCROW nEndRow, bool bHidden) else bChanged = mpHiddenRows->setFalse(nStartRow, nEndRow); + if (bChanged) + { + if (IsStreamValid()) + SetStreamValid(false); + } + return bChanged; } @@ -591,6 +597,12 @@ bool ScTable::SetColHidden(SCCOL nStartCol, SCCOL nEndCol, bool bHidden) else bChanged = mpHiddenCols->setFalse(nStartCol, nEndCol); + if (bChanged) + { + if (IsStreamValid()) + SetStreamValid(false); + } + return bChanged; } diff --git a/sc/source/filter/xml/cachedattraccess.cxx b/sc/source/filter/xml/cachedattraccess.cxx index b5ef932a4410..906ea308bde5 100644 --- a/sc/source/filter/xml/cachedattraccess.cxx +++ b/sc/source/filter/xml/cachedattraccess.cxx @@ -12,7 +12,7 @@ * License. * * The Initial Developer of the Original Code is - * [ Kohei Yoshida <kyoshida@novell.com> ] + * Kohei Yoshida <kyoshida@novell.com> * Portions created by the Initial Developer are Copyright (C) 2010 the * Initial Developer. All Rights Reserved. * @@ -48,7 +48,7 @@ bool ScXMLCachedRowAttrAccess::rowHidden(sal_Int32 nTab, sal_Int32 nRow) { SCROW nRow1, nRow2; maHidden.mbValue = mpDoc->RowHidden( - static_cast<SCTAB>(nTab), static_cast<SCROW>(nRow), &nRow1, &nRow2); + static_cast<SCROW>(nRow), static_cast<SCTAB>(nTab), &nRow1, &nRow2); maHidden.mnRow1 = static_cast<sal_Int32>(nRow1); maHidden.mnRow2 = static_cast<sal_Int32>(nRow2); } @@ -61,7 +61,7 @@ bool ScXMLCachedRowAttrAccess::rowFiltered(sal_Int32 nTab, sal_Int32 nRow) { SCROW nRow1, nRow2; maFiltered.mbValue = mpDoc->RowFiltered( - static_cast<SCTAB>(nTab), static_cast<SCROW>(nRow), &nRow1, &nRow2); + static_cast<SCROW>(nRow), static_cast<SCTAB>(nTab), &nRow1, &nRow2); maFiltered.mnRow1 = static_cast<sal_Int32>(nRow1); maFiltered.mnRow2 = static_cast<sal_Int32>(nRow2); } |