1 diff -u -r ../src680-m79.bak/sc/source/ui/docshell/dbdocimp.cxx sc/source/ui/docshell/dbdocimp.cxx
2 --- ../src680-m79.bak/sc/source/ui/docshell/dbdocimp.cxx 2005-03-09 10:21:05.000000000 +0530
3 +++ sc/source/ui/docshell/dbdocimp.cxx 2005-03-14 16:43:44.251843333 +0530
5 #include "dbdocutl.hxx"
6 #include "editable.hxx"
8 +#include "chgtrack.hxx"
10 using namespace com::sun::star;
13 const SbaSelectionList* pSelection, BOOL bRecord, BOOL bAddrInsert )
15 ScDocument* pDoc = rDocShell.GetDocument();
16 + ScChangeTrack *pChangeTrack = NULL;
17 + ScRange aChangedRange;
19 if (bRecord && !pDoc->IsUndoEnabled())
22 nErrStringId = aTester.GetMessageId();
25 - else if ( pDoc->GetChangeTrack() != NULL )
27 - nErrStringId = STR_PROTECTIONERR;
30 + else if ( (pChangeTrack = pDoc->GetChangeTrack()) != NULL )
31 + aChangedRange = ScRange(rParam.nCol1, rParam.nRow1, nTab,
32 + nEndCol+nFormulaCols, nEndRow, nTab );
35 if ( bSuccess && bMoveCells )
40 + if (bSuccess && pChangeTrack)
41 + pChangeTrack->AppendInsert ( aChangedRange );