diff options
author | Andras Timar <andras.timar@collabora.com> | 2020-07-21 10:59:24 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2020-07-21 10:59:42 +0200 |
commit | e94d9c1c346a8b7e58c24bcf554c0a2bab77f59c (patch) | |
tree | f54fc66d3e5f82ed094eb182ba82819e32e347c7 /sc/source/ui/undo/undodat.cxx | |
parent | 08febf86699fc1a1e69f32fb57f46ad84b8322b2 (diff) |
Revert "tdf#128502: Try to support multiple documents ...
cp-6.2-20
in LibreOfficeKit-using process"
This reverts commit b0da52d19ed40dd0871f208eb7387ec1d8252de4.
We decided not to have this "multiple docs" feature in stable cp-6.2
because it caused regressions that we could not fix quickly.
Change-Id: Ib9ad6e010935e6a936832c01756700735a8cc6c5
Diffstat (limited to 'sc/source/ui/undo/undodat.cxx')
-rw-r--r-- | sc/source/ui/undo/undodat.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/ui/undo/undodat.cxx b/sc/source/ui/undo/undodat.cxx index 20d6eac3b6ea..45047082faca 100644 --- a/sc/source/ui/undo/undodat.cxx +++ b/sc/source/ui/undo/undodat.cxx @@ -184,7 +184,7 @@ void ScUndoMakeOutline::Undo() pDocShell->PostPaint(0,0,nTab,MAXCOL,MAXROW,nTab,PaintPartFlags::Grid|PaintPartFlags::Left|PaintPartFlags::Top|PaintPartFlags::Size); - ScTabViewShell::notifyAllViewsHeaderInvalidation( pViewShell, bColumns ? COLUMN_HEADER : ROW_HEADER, nTab ); + ScTabViewShell::notifyAllViewsHeaderInvalidation( bColumns, nTab ); EndUndo(); } @@ -453,7 +453,7 @@ void ScUndoRemoveAllOutlines::Undo() pDocShell->PostPaint(0,0,nTab,MAXCOL,MAXROW,nTab,PaintPartFlags::Grid|PaintPartFlags::Left|PaintPartFlags::Top|PaintPartFlags::Size); - ScTabViewShell::notifyAllViewsHeaderInvalidation(pViewShell, BOTH_HEADERS, nTab); + ScTabViewShell::notifyAllViewsHeaderInvalidation(BOTH_HEADERS, nTab); EndUndo(); } @@ -737,13 +737,13 @@ OUString ScUndoQuery::GetComment() const void ScUndoQuery::Undo() { - ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); - if (ScTabViewShell::isAnyEditViewInRange(pViewShell, /*bColumns*/ false, aQueryParam.nRow1, aQueryParam.nRow2)) + if (ScTabViewShell::isAnyEditViewInRange(/*bColumns*/ false, aQueryParam.nRow1, aQueryParam.nRow2)) return; BeginUndo(); ScDocument& rDoc = pDocShell->GetDocument(); + ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell(); bool bCopy = !aQueryParam.bInplace; SCCOL nDestEndCol = 0; @@ -818,7 +818,7 @@ void ScUndoQuery::Undo() // invalidate cache positions and update cursor and selection pViewShell->OnLOKShowHideColRow(/*bColumns*/ false, aQueryParam.nRow1 - 1); - ScTabViewShell::notifyAllViewsHeaderInvalidation(pViewShell, ROW_HEADER, nTab); + ScTabViewShell::notifyAllViewsHeaderInvalidation(ROW_HEADER, nTab); // Paint |