diff options
author | Andras Timar <andras.timar@collabora.com> | 2020-07-21 10:58:25 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2020-07-21 10:58:50 +0200 |
commit | 08febf86699fc1a1e69f32fb57f46ad84b8322b2 (patch) | |
tree | f0fe3cabdf82847122b51629c74004116db348ef | |
parent | 519b0805da405d14badbe314d855bc222c80776a (diff) |
Revert "tdf#128502: Remove assertions that fire for gtktiledviewer ...
on two docs"
This reverts commit a84adccbd8cda66fd4d84c8443b0715820afd1da.
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: I01de0740cafa27a2fd5e07dd3a3ebd223c64297f
-rw-r--r-- | sc/source/ui/view/gridwin.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index 7d686de0e4aa..c0e437b8f98d 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx @@ -5740,6 +5740,7 @@ void ScGridWindow::notifyKitCellViewCursor(const SfxViewShell* pForShell) const if (mpOOCursors) // cf. getCellCursor above { auto pForTabView = dynamic_cast<const ScTabViewShell *>(pForShell); + assert(pForTabView); if (!pForTabView) return; aCursor = pForTabView->GetViewData().describeCellCursorAt( @@ -5776,6 +5777,7 @@ void ScGridWindow::updateKitOtherCursors() const it = SfxViewShell::GetNext(*it)) { auto pOther = dynamic_cast<const ScTabViewShell *>(it); + assert(pOther); if (!pOther) continue; const ScGridWindow *pGrid = pOther->GetViewData().GetActiveWin(); @@ -6000,6 +6002,7 @@ void ScGridWindow::updateOtherKitSelections() const it = SfxViewShell::GetNext(*it)) { auto pOther = dynamic_cast<const ScTabViewShell *>(it); + assert(pOther); if (!pOther) return; |