diff options
-rw-r--r-- | sc/source/core/tool/address.cxx | 4 | ||||
-rw-r--r-- | sc/source/core/tool/interpr1.cxx | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sc/source/core/tool/address.cxx b/sc/source/core/tool/address.cxx index 20fd586d0516..53def4f9c13f 100644 --- a/sc/source/core/tool/address.cxx +++ b/sc/source/core/tool/address.cxx @@ -1017,12 +1017,14 @@ lcl_ScAddress_Parse_OOo( const sal_Unicode* p, ScDocument* pDoc, ScAddress& rAdd if (!bExtDoc && (!pDoc || !pDoc->GetTable( aTab, nTab ))) { // Specified table name is not found in this document. Assume this is an external document. - bExtDoc = true; aDocName = aTab; xub_StrLen n = aTab.SearchBackward('.'); if (n != STRING_NOTFOUND && n > 0) + { // Extension found. Strip it. aTab.Erase(n); + bExtDoc = true; + } else // No extension found. This is probably not an external document. nBits = 0; diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx index 73fc350328c0..fdbeb58e20a2 100644 --- a/sc/source/core/tool/interpr1.cxx +++ b/sc/source/core/tool/interpr1.cxx @@ -6620,7 +6620,7 @@ void ScInterpreter::ScIndirect() } while (false); - PushIllegalArgument(); + PushError( errNoRef); } } } |