diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-09-19 09:11:09 -0400 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2014-09-23 14:15:28 +0000 |
commit | 8066367bbe0adebae515862ebd260560657ace02 (patch) | |
tree | f5496952de0d32ec92e36cca1be650abe28281e4 | |
parent | 086ed7e59f5ec74dfdf046c3d5b4f28ede8dd8be (diff) |
fdo#84009: Be sure to update the sheet index when moving the sort range.
Change-Id: Ic9ad51b33f6dfb6f90e76439c27eeff25ec4c7da
(cherry picked from commit 5fd4679e7b92f344ea867e0dca1fc4c9363ae2cd)
Reviewed-on: https://gerrit.libreoffice.org/11550
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r-- | sc/source/ui/docshell/dbdocfun.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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, |