diff options
author | Michael Meeks <michael.meeks@novell.com> | 2011-03-22 12:57:59 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2011-03-22 12:57:59 +0000 |
commit | 5f2f0d3ad37b7fe3648b262f6a3f0d3436e4519e (patch) | |
tree | 2cf9c88d703c029cec8a99f889505193a1934f71 /sfx2 | |
parent | Removed comments /commented code (diff) | |
download | core-5f2f0d3ad37b7fe3648b262f6a3f0d3436e4519e.tar.gz core-5f2f0d3ad37b7fe3648b262f6a3f0d3436e4519e.zip |
cope with no resource file better
Diffstat (limited to 'sfx2')
-rwxr-xr-x | sfx2/source/control/objface.cxx | 2 |
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); |