From 04eaf4fc5a63dbb4b2979c6f1667398e40ba3f76 Mon Sep 17 00:00:00 2001 From: Niklas Nebel Date: Mon, 2 Dec 2002 16:44:59 +0000 Subject: [PATCH] #105780# Sort: don't call ScDocument::Sort with an empty SortParam --- sc/source/ui/docshell/dbdocfun.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sc/source/ui/docshell/dbdocfun.cxx b/sc/source/ui/docshell/dbdocfun.cxx index 23b77af0d293..13f47e3bb181 100644 --- a/sc/source/ui/docshell/dbdocfun.cxx +++ b/sc/source/ui/docshell/dbdocfun.cxx @@ -2,9 +2,9 @@ * * $RCSfile: dbdocfun.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: nn $ $Date: 2002-11-20 14:33:09 $ + * last change: $Author: nn $ $Date: 2002-12-02 17:44:59 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -551,7 +551,10 @@ BOOL ScDBDocFunc::Sort( USHORT nTab, const ScSortParam& rSortParam, rDocShell.GetDocFunc().MoveBlock( aSource, aDest, FALSE, FALSE, FALSE, TRUE ); } - pDoc->Sort( nTab, aLocalParam, bRepeatQuery ); + + // #105780# don't call ScDocument::Sort with an empty SortParam (may be empty here if bCopy is set) + if ( aLocalParam.bDoSort[0] ) + pDoc->Sort( nTab, aLocalParam, bRepeatQuery ); BOOL bSave = TRUE; if (bCopy)