summaryrefslogtreecommitdiff
path: root/sd/source/ui/sidebar/SlideBackground.cxx
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2020-07-21 10:59:24 +0200
committerAndras Timar <andras.timar@collabora.com>2020-07-21 10:59:42 +0200
commite94d9c1c346a8b7e58c24bcf554c0a2bab77f59c (patch)
treef54fc66d3e5f82ed094eb182ba82819e32e347c7 /sd/source/ui/sidebar/SlideBackground.cxx
parent08febf86699fc1a1e69f32fb57f46ad84b8322b2 (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 'sd/source/ui/sidebar/SlideBackground.cxx')
-rw-r--r--sd/source/ui/sidebar/SlideBackground.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/sd/source/ui/sidebar/SlideBackground.cxx b/sd/source/ui/sidebar/SlideBackground.cxx
index d59cd6616f46..9182f6984056 100644
--- a/sd/source/ui/sidebar/SlideBackground.cxx
+++ b/sd/source/ui/sidebar/SlideBackground.cxx
@@ -1044,14 +1044,10 @@ IMPL_LINK_NOARG(SlideBackground, PaperSizeModifyHdl, ListBox&, void)
if (comphelper::LibreOfficeKit::isActive())
{
SfxViewShell* pViewShell = SfxViewShell::GetFirst();
- while (pViewShell)
+ if (pViewShell)
{
- if (pViewShell->GetDocId() == mrBase.GetDocId())
- {
- SdXImpressDocument* pModel = SdXImpressDocument::getImplementation(pViewShell->GetCurrentDocument());
- SfxLokHelper::notifyDocumentSizeChangedAllViews(pModel);
- }
- pViewShell = SfxViewShell::GetNext(*pViewShell);
+ SdXImpressDocument* pModel = SdXImpressDocument::getImplementation(pViewShell->GetCurrentDocument());
+ SfxLokHelper::notifyDocumentSizeChangedAllViews(pModel);
}
}
}