summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-03-09 01:51:54 +0100
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-03-09 14:41:11 -0500
commita1091d0dbddaf59d8e5dba74e7c7a2bbd9778e06 (patch)
treedfd090abae647b5c82c0a698e1070acb989880f6 /sc
parent22289e0ac4782af17f80b442b65ffe5710c9479e (diff)
don't show the anonymous db string, it is for internal use only
Signed-off-by: Kohei Yoshida <kohei.yoshida@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/dbgui/foptmgr.cxx14
1 files changed, 11 insertions, 3 deletions
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: