diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2019-05-10 10:41:02 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2019-05-10 16:20:00 +0200 |
commit | 35f7cacc8ac59146af728d1db126136771581c52 (patch) | |
tree | 1ac577f160741abbde83172f5ee40122657734e5 /sc/source/ui/app | |
parent | e655dc8bbf010e5ef89c32c2ebde56281b323925 (diff) |
lok: assert that tabs are not locked.
Should save a lot of debugging of out-of-sync part state between
the calc core and lok clients.
at ScTabControl::Select ()
from ScTabControl::SwitchToPageId (... nId=2)
from doc_setPart (... nPart=1)
we really don't want to hit this:
if ( pScMod->IsTableLocked() ) // may not be switched now ?
{ │
// restore the old state of TabControls
Change-Id: I02b29e9e0e29ce37b64e3f082811bc080c0dc254
Reviewed-on: https://gerrit.libreoffice.org/72114
Tested-by: Jenkins
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'sc/source/ui/app')
-rw-r--r-- | sc/source/ui/app/scmod.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx index a1ddebd26de7..76faf343953c 100644 --- a/sc/source/ui/app/scmod.cxx +++ b/sc/source/ui/app/scmod.cxx @@ -1625,6 +1625,9 @@ bool ScModule::IsTableLocked() bLocked = true; // for other views, see IsModalMode } + // We can't stop LOK clients from switching part, and getting out of sync. + assert(!bLocked || !comphelper::LibreOfficeKit::isActive()); + return bLocked; } |