summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfx2/source/appl/appserv.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx
index 2e41b999cf70..6dec63520128 100644
--- a/sfx2/source/appl/appserv.cxx
+++ b/sfx2/source/appl/appserv.cxx
@@ -813,6 +813,14 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq )
pViewFrame = SfxViewFrame::GetFirst();
while( pViewFrame )
{
+ // in LOK case we want to apply changes only to the current view
+ if (comphelper::LibreOfficeKit::isActive() &&
+ pViewFrame != SfxViewShell::Current()->GetViewFrame())
+ {
+ pViewFrame = SfxViewFrame::GetNext( *pViewFrame );
+ continue;
+ }
+
Reference<XFrame> xFrame = pViewFrame->GetFrame().GetFrameInterface();
// We want to change mode only for a current app module, ignore other apps