diff -uPr old/sc/source/ui/undo/undodat.cxx new/sc/source/ui/undo/undodat.cxx --- old/sc/source/ui/undo/undodat.cxx 2008-01-30 21:32:56.000000000 +0800 +++ new/sc/source/ui/undo/undodat.cxx 2008-08-01 10:44:40.000000000 +0800 @@ -1039,6 +1039,10 @@ if (!bCopy) pDoc->UpdatePageBreaks( nTab ); + ScRange aDirtyRange( 0 , aQueryParam.nRow1, nTab, + MAXCOL, aQueryParam.nRow2, nTab ); + pDoc->SetDirty( aDirtyRange ); + DoSdrUndoAction( pDrawUndo, pDoc ); SCTAB nVisTab = pViewShell->GetViewData()->GetTabNo();