summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-09-19 09:11:09 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-09-19 09:13:26 -0400
commit5fd4679e7b92f344ea867e0dca1fc4c9363ae2cd (patch)
tree2fbd893083b900bfe3f1bde903c3e2eeebbb2a7a
parente85d8f9c5aadee9872ec6d7f33567f9ed84b478d (diff)
fdo#84009: Be sure to update the sheet index when moving the sort range.
Change-Id: Ic9ad51b33f6dfb6f90e76439c27eeff25ec4c7da
-rw-r--r--sc/source/ui/docshell/dbdocfun.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/ui/docshell/dbdocfun.cxx b/sc/source/ui/docshell/dbdocfun.cxx
index 7f30a02f1eeb..fe843b585edc 100644
--- a/sc/source/ui/docshell/dbdocfun.cxx
+++ b/sc/source/ui/docshell/dbdocfun.cxx
@@ -499,6 +499,7 @@ bool ScDBDocFunc::Sort( SCTAB nTab, const ScSortParam& rSortParam,
return false;
aLocalParam.MoveToDest();
+ nTab = aLocalParam.nDestTab;
}
ScEditableTester aTester( &rDoc, nTab, aLocalParam.nCol1,aLocalParam.nRow1,