summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-10-09 11:17:25 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-10-10 03:21:16 +0200
commitda7edb8bd74eb3c42a4585254e5bb329905b56c8 (patch)
tree7a31f149bc5f78075fde4ad675111a746bdde71e /sc
parent7e1d03f0f6b68d4a955a6b5df94be77307e58476 (diff)
in ScAnyRefDlg + table locked, don't allow creating new sheets,fdo#55709
Change-Id: I8129b41288d20a0c2b6eac90ca5d25392fe0386f
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/tabcont.cxx3
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);