summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/dbdocfun.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-08-29 19:35:06 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-08-29 19:46:33 +0200
commitb705c6b4bd080dd0f7713286a1b19ce95850eb49 (patch)
tree89c8dc967f2aef072bd8d400afee055fbf067c05 /sc/source/ui/docshell/dbdocfun.cxx
parente1d56d509bf52eb83b461f4e291d348caa6c119d (diff)
move ScProgress construction out of ScTable::Sort
Change-Id: I8e523fbb53b9c40075b62ee32d79eee0b408168e
Diffstat (limited to 'sc/source/ui/docshell/dbdocfun.cxx')
-rw-r--r--sc/source/ui/docshell/dbdocfun.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/ui/docshell/dbdocfun.cxx b/sc/source/ui/docshell/dbdocfun.cxx
index c5ac76078dde..d7cff6391edf 100644
--- a/sc/source/ui/docshell/dbdocfun.cxx
+++ b/sc/source/ui/docshell/dbdocfun.cxx
@@ -582,7 +582,10 @@ sal_Bool ScDBDocFunc::Sort( SCTAB nTab, const ScSortParam& rSortParam,
// don't call ScDocument::Sort with an empty SortParam (may be empty here if bCopy is set)
if (aLocalParam.GetSortKeyCount() && aLocalParam.maKeyState[0].bDoSort)
- pDoc->Sort( nTab, aLocalParam, bRepeatQuery );
+ {
+ ScProgress aProgress(&rDocShell, ScGlobal::GetRscString(STR_PROGRESS_SORTING), 0);
+ pDoc->Sort( nTab, aLocalParam, bRepeatQuery, &aProgress );
+ }
sal_Bool bSave = sal_True;
if (bCopy)