diff options
author | Niklas Nebel <nn@openoffice.org> | 2002-11-20 13:36:29 +0000 |
---|---|---|
committer | Niklas Nebel <nn@openoffice.org> | 2002-11-20 13:36:29 +0000 |
commit | eacb79951c4b8e8b4aa0f9c109f0bd8d6178ec8d (patch) | |
tree | 34cd263de9c55875c05f36cae1e99ca495fe16cf /sc/source/ui/view/dbfunc3.cxx | |
parent | 5f9c078bc015882c7de9aecff83af57d9d6f0df4 (diff) |
#83422# different error messages for protected cells and part of array formula
Diffstat (limited to 'sc/source/ui/view/dbfunc3.cxx')
-rw-r--r-- | sc/source/ui/view/dbfunc3.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sc/source/ui/view/dbfunc3.cxx b/sc/source/ui/view/dbfunc3.cxx index 667adae7c6f3..6cc2bc6fb7d7 100644 --- a/sc/source/ui/view/dbfunc3.cxx +++ b/sc/source/ui/view/dbfunc3.cxx @@ -2,9 +2,9 @@ * * $RCSfile: dbfunc3.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: sab $ $Date: 2001-02-14 15:34:07 $ + * last change: $Author: nn $ $Date: 2002-11-20 14:34:34 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -90,6 +90,7 @@ #include "dpobject.hxx" #include "dpsave.hxx" #include "dbdocfun.hxx" +#include "editable.hxx" // STATIC DATA ----------------------------------------------------------- @@ -407,9 +408,10 @@ void ScDBFunc::DoSubTotals( const ScSubTotalParam& rParam, BOOL bRecord, return; } - if (!pDoc->IsBlockEditable( nTab, 0,rParam.nRow1+1, MAXCOL,MAXROW )) + ScEditableTester aTester( pDoc, nTab, 0,rParam.nRow1+1, MAXCOL,MAXROW ); + if (!aTester.IsEditable()) { - ErrorMessage(STR_PROTECTIONERR); + ErrorMessage(aTester.GetMessageId()); return; } |