summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml/cachedattraccess.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-02-12 00:44:01 -0500
committerKohei Yoshida <kyoshida@novell.com>2011-02-12 00:44:01 -0500
commitef2eab7899ac09784580006a521385c3afc109f7 (patch)
tree062253c2c8256aad191ebff18a23cba271d45869 /sc/source/filter/xml/cachedattraccess.cxx
parentacfcebd01eb0cf3503491a5e52b60a2f454b63a8 (diff)
Fixed a bug where row hidden/filtered attributes were not saved.
ScDocument::RowHidden() and RowFiltered() takes the row index as the first argument, not second. The second argument is the table index.
Diffstat (limited to 'sc/source/filter/xml/cachedattraccess.cxx')
-rw-r--r--sc/source/filter/xml/cachedattraccess.cxx6
1 files changed, 3 insertions, 3 deletions
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);
}