summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@novell.com>2011-03-22 12:57:59 +0000
committerMichael Meeks <michael.meeks@novell.com>2011-03-22 12:57:59 +0000
commit5f2f0d3ad37b7fe3648b262f6a3f0d3436e4519e (patch)
tree2cf9c88d703c029cec8a99f889505193a1934f71 /sfx2
parentb67fe5cc0522926bf7782d22e6d50aa4769ecbf6 (diff)
cope with no resource file better
Diffstat (limited to 'sfx2')
-rwxr-xr-xsfx2/source/control/objface.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/control/objface.cxx b/sfx2/source/control/objface.cxx
index f942b17e4dc0..e69c11fa2377 100755
--- a/sfx2/source/control/objface.cxx
+++ b/sfx2/source/control/objface.cxx
@@ -428,7 +428,7 @@ SfxObjectUI_Impl* CreateObjectBarUI_Impl( sal_uInt16 nPos, const ResId& rResId,
aResId.SetResMgr(rResId.GetResMgr());
if( ! aResId.GetResMgr() )
aResId.SetResMgr( SfxApplication::GetOrCreate()->GetOffResManager_Impl() );
- if ( !aResId.GetResMgr()->IsAvailable(aResId) )
+ if ( !aResId.GetResMgr() || !aResId.GetResMgr()->IsAvailable(aResId) )
pUI->pName = new String (DEFINE_CONST_UNICODE("NoName"));
else
pUI->pName = new String(aResId);