diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-03-09 02:08:40 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-03-09 02:08:40 +0100 |
commit | 66fbd3a48ac5608eeb45629b9d285790cfcefff6 (patch) | |
tree | 06207d07700a935df1e737edd9cf5c25fd1b7978 | |
parent | 50ade1da6464c99bd9670dbaa2fc1a9dadf6b914 (diff) |
remove one more reference to the anonymous db string
-rw-r--r-- | sc/source/ui/dbgui/dbnamdlg.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/ui/dbgui/dbnamdlg.cxx b/sc/source/ui/dbgui/dbnamdlg.cxx index 18850f80a1e7..0f32a4d09f6d 100644 --- a/sc/source/ui/dbgui/dbnamdlg.cxx +++ b/sc/source/ui/dbgui/dbnamdlg.cxx @@ -245,7 +245,6 @@ void ScDbNameDlg::Init() pDBData = pDBColl->GetDBAtCursor( nStartCol, nStartRow, nStartTab, sal_True ); if ( pDBData ) { - ::rtl::OUString theDbName; ScAddress& rStart = theCurArea.aStart; ScAddress& rEnd = theCurArea.aEnd; SCCOL nCol1; @@ -260,7 +259,9 @@ void ScDbNameDlg::Init() && (rStart.Col() == nCol1) && (rStart.Row() == nRow1) && (rEnd.Col() == nCol2) && (rEnd.Row() == nRow2 ) ) { - aEdName.SetText(pDBData->GetName()); + rtl::OUString aDBName = pDBData->GetName(); + if (!aDBName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(STR_DB_LOCAL_NONAME))) + aEdName.SetText(aDBName); aBtnHeader.Check( pDBData->HasHeader() ); aBtnDoSize.Check( pDBData->IsDoSize() ); |