[Libreoffice-commits] .: sfx2/source
Michael Meeks
michael at kemper.freedesktop.org
Tue Mar 22 05:58:45 PDT 2011
sfx2/source/control/objface.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 5fa587fee67f5728979b776d8d108dcce6f013c6
Author: Michael Meeks <michael.meeks at novell.com>
Date: Tue Mar 22 12:57:59 2011 +0000
cope with no resource file better
diff --git a/sfx2/source/control/objface.cxx b/sfx2/source/control/objface.cxx
index 4e52eab..b399e19 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);
More information about the Libreoffice-commits
mailing list