From a35b17dd1768c39ffe786f38b1fe0c8be7666974 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Fri, 14 Jul 2017 15:09:11 +0200 Subject: Assert non-empty sheet name Change-Id: I6794d134a6f0d1f1b1531782c5f8011ce322085b --- sc/source/core/tool/address.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'sc') 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 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" -- cgit