From a308c4de399595a346c602ec8500f7e0f2e58ece Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Fri, 19 Sep 2014 09:11:09 -0400 Subject: fdo#84009: Be sure to update the sheet index when moving the sort range. Change-Id: Ic9ad51b33f6dfb6f90e76439c27eeff25ec4c7da (cherry picked from commit 5fd4679e7b92f344ea867e0dca1fc4c9363ae2cd) --- sc/source/ui/docshell/dbdocfun.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/sc/source/ui/docshell/dbdocfun.cxx b/sc/source/ui/docshell/dbdocfun.cxx index 29d2da172569..aa1e322084be 100644 --- a/sc/source/ui/docshell/dbdocfun.cxx +++ b/sc/source/ui/docshell/dbdocfun.cxx @@ -462,6 +462,7 @@ sal_Bool ScDBDocFunc::Sort( SCTAB nTab, const ScSortParam& rSortParam, return false; aLocalParam.MoveToDest(); + nTab = aLocalParam.nDestTab; } ScEditableTester aTester( pDoc, nTab, aLocalParam.nCol1,aLocalParam.nRow1, -- cgit