diff options
author | Muhammet Kara <muhammet.kara@collabora.com> | 2019-07-31 17:04:38 +0300 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-08-29 16:38:36 +0200 |
commit | f8b2a27365b858ab5653edad75fd089b39d016d8 (patch) | |
tree | b703217b2c858e4baeb3e71538e2a4a9f50fdda8 /desktop/source/lib | |
parent | e56d143c36af028825a8e824201a3aa193862af4 (diff) |
LOK: per-view support for isMobile()
embeddedobj/source/commonembedding/embedobj.cxx will have
a follow-up patch, which also removes the -1 case.
It is left out because it has many call-sites,
and inheritance/override relations.
Change-Id: Iaf00530916f3772f7aec151cbd358f255b7aab24
Reviewed-on: https://gerrit.libreoffice.org/78272
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'desktop/source/lib')
-rw-r--r-- | desktop/source/lib/init.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 3c81ae6b400d..d7b920632fbf 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -3214,12 +3214,12 @@ static void doc_postUnoCommand(LibreOfficeKitDocument* pThis, const char* pComma // Set/unset mobile view for LOK if (gImpl && aCommand == ".uno:LOKSetMobile") { - comphelper::LibreOfficeKit::setMobile(); + comphelper::LibreOfficeKit::setMobile(nView); return; } else if (gImpl && aCommand == ".uno:LOKUnSetMobile") { - comphelper::LibreOfficeKit::setMobile(false); + comphelper::LibreOfficeKit::setMobile(nView, false); return; } |