summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
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: