Kaydet (Commit) 5f2f0d3a authored tarafından Michael Meeks's avatar Michael Meeks

cope with no resource file better

üst b67fe5cc
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment