summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-07-14 15:09:11 +0200
committerEike Rathke <erack@redhat.com>2017-07-14 19:34:56 +0200
commita35b17dd1768c39ffe786f38b1fe0c8be7666974 (patch)
tree9c560d8de92bee2bf28e6994be7fa10fbe77dca7 /sc
parentf9d5877f41b54882a7f364f33b314cbaeb3b44c0 (diff)
Assert non-empty sheet name
Change-Id: I6794d134a6f0d1f1b1531782c5f8011ce322085b
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/address.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/core/tool/address.cxx b/sc/source/core/tool/address.cxx
index f9b721159484..5d830cd69999 100644
--- a/sc/source/core/tool/address.cxx
+++ b/sc/source/core/tool/address.cxx
@@ -2014,6 +2014,7 @@ template<typename T > inline void lcl_Format( T& r, SCTAB nTab, SCROW nRow, SCCO
{
OUString aTabName, aDocName;
pDoc->GetName(nTab, aTabName);
+ assert( !aTabName.isEmpty() && "empty sheet name");
// External Reference, same as in ScCompiler::MakeTabStr()
if( aTabName[0] == '\'' )
{ // "'Doc'#Tab"