diff options
author | Andras Timar <andras.timar@collabora.com> | 2020-07-21 10:51:59 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2020-07-21 10:53:25 +0200 |
commit | 12fb7c85de84f573f2aa6705f4fd26e00cf86768 (patch) | |
tree | 827b6a7e89cc793bc5363996c35576807c9df977 | |
parent | c91a8faaf6b03bde165894d6d35ce5f71a39c7c4 (diff) |
Revert "tdf#128502: Fix (haha) for a crash with multiple docs ...
open in the iOS app"
This reverts commit 2768b5828df4b045c65c1fbfd724c8066761711a.
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: If9c6002782bf76957ad384556152a173dd2c18cb
-rw-r--r-- | sfx2/source/view/lokhelper.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sfx2/source/view/lokhelper.cxx b/sfx2/source/view/lokhelper.cxx index 800bd162117a..2f78bfc1eaa5 100644 --- a/sfx2/source/view/lokhelper.cxx +++ b/sfx2/source/view/lokhelper.cxx @@ -422,10 +422,7 @@ void SfxLokHelper::notifyDocumentSizeChangedAllViews(vcl::ITiledRenderable* pDoc SfxViewShell* pViewShell = SfxViewShell::GetFirst(); while (pViewShell) { - // FIXME: What if SfxViewShell::Current() returned null? - // Should we then do this for all views of all open documents - // or not? - if (pCurrentViewShell == nullptr || pViewShell->GetDocId() == pCurrentViewShell-> GetDocId()) + if (pViewShell->GetDocId() == pCurrentViewShell-> GetDocId()) SfxLokHelper::notifyDocumentSizeChanged(pViewShell, "", pDoc, bInvalidateAll); pViewShell = SfxViewShell::GetNext(*pViewShell); } |