From a1091d0dbddaf59d8e5dba74e7c7a2bbd9778e06 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Fri, 9 Mar 2012 01:51:54 +0100 Subject: don't show the anonymous db string, it is for internal use only Signed-off-by: Kohei Yoshida --- sc/source/ui/dbgui/foptmgr.cxx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'sc') diff --git a/sc/source/ui/dbgui/foptmgr.cxx b/sc/source/ui/dbgui/foptmgr.cxx index eec3c8833b3b..61bd2ce2c567 100644 --- a/sc/source/ui/dbgui/foptmgr.cxx +++ b/sc/source/ui/dbgui/foptmgr.cxx @@ -196,9 +196,17 @@ void ScFilterOptionsMgr::Init() } } - theDbArea.appendAscii(RTL_CONSTASCII_STRINGPARAM(" (")); - theDbArea.append(theDbName).append(')'); - rFtDbArea.SetText( theDbArea.makeStringAndClear() ); + if ( !theDbName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(STR_DB_LOCAL_NONAME)) ) + { + theDbArea.appendAscii(RTL_CONSTASCII_STRINGPARAM(" (")); + theDbArea.append(theDbName).append(')'); + rFtDbArea.SetText( theDbArea.makeStringAndClear() ); + } + else + { + rFtDbAreaLabel.SetText( rtl::OUString() ); + rFtDbArea.SetText( rtl::OUString() ); + } //------------------------------------------------------ // Kopierposition: -- cgit