From ef2eab7899ac09784580006a521385c3afc109f7 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Sat, 12 Feb 2011 00:44:01 -0500 Subject: 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. --- sc/source/filter/xml/cachedattraccess.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sc/source/filter/xml/cachedattraccess.cxx') 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 ] + * Kohei Yoshida * 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(nTab), static_cast(nRow), &nRow1, &nRow2); + static_cast(nRow), static_cast(nTab), &nRow1, &nRow2); maHidden.mnRow1 = static_cast(nRow1); maHidden.mnRow2 = static_cast(nRow2); } @@ -61,7 +61,7 @@ bool ScXMLCachedRowAttrAccess::rowFiltered(sal_Int32 nTab, sal_Int32 nRow) { SCROW nRow1, nRow2; maFiltered.mbValue = mpDoc->RowFiltered( - static_cast(nTab), static_cast(nRow), &nRow1, &nRow2); + static_cast(nRow), static_cast(nTab), &nRow1, &nRow2); maFiltered.mnRow1 = static_cast(nRow1); maFiltered.mnRow2 = static_cast(nRow2); } -- cgit