diff options
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/tabcont.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/view/tabcont.cxx b/sc/source/ui/view/tabcont.cxx index f086ad693f6e..71fcf453bd24 100644 --- a/sc/source/ui/view/tabcont.cxx +++ b/sc/source/ui/view/tabcont.cxx @@ -176,7 +176,8 @@ void ScTabControl::MouseButtonUp( const MouseEvent& rMEvt ) { // Insert a new sheet at the right end, with default name. ScDocument* pDoc = pViewData->GetDocument(); - if (!pDoc->IsDocEditable()) + ScModule* pScMod = SC_MOD(); + if (!pDoc->IsDocEditable() || pScMod->IsTableLocked()) return; rtl::OUString aName; pDoc->CreateValidTabName(aName); |