diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-03-12 21:53:34 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-03-12 22:00:07 -0400 |
commit | 18909ddb30db7ca9416ee2bfb0503753e877f002 (patch) | |
tree | f8865f2f8b3932172fa08390adbe98c23e19d6ca /sc/source/ui/docshell/dbdocimp.cxx | |
parent | c9058f25e97b58a05eb25b7b769f6406423186b6 (diff) |
fdo#75977: Clear sheet deleted flags for affected references when undoing.
This will allow formula cells to restore deleted references when they get
recalculated. With this change, SetDirty() that previosly took no argument
has been renamed to SetAllFormulasDirty(), and it now takes one argument that
stores context information.
Change-Id: If0de5dc1737a2722b6d61a87644b10a4f921edc5
Diffstat (limited to 'sc/source/ui/docshell/dbdocimp.cxx')
-rw-r--r-- | sc/source/ui/docshell/dbdocimp.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/ui/docshell/dbdocimp.cxx b/sc/source/ui/docshell/dbdocimp.cxx index 3b8ee69953d0..62e4e51e1f53 100644 --- a/sc/source/ui/docshell/dbdocimp.cxx +++ b/sc/source/ui/docshell/dbdocimp.cxx @@ -53,6 +53,7 @@ #include "hints.hxx" #include "miscuno.hxx" #include "chgtrack.hxx" +#include <refupdatecontext.hxx> using namespace com::sun::star; @@ -626,7 +627,8 @@ bool ScDBDocFunc::DoImport( SCTAB nTab, const ScImportParam& rParam, pUndoDoc, pRedoDoc, pUndoDBData, pRedoDBData ) ); } - pDoc->SetDirty(); + sc::SetFormulaDirtyContext aCxt; + pDoc->SetAllFormulasDirty(aCxt); rDocShell.PostPaint(ScRange(0, 0, nTab, MAXCOL, MAXROW, nTab), PAINT_GRID); aModificator.SetDocumentModified(); |