From 6d6198393e0677710191248d6f7c9ec15d0f0e0f Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 16 Jul 2012 13:57:43 +0100 Subject: Resolves: fdo#42454 'imported' gallery format doesn't appear to exist AFAICS an "imported" gallery can only be written if you already have an imported gallery in the first place, i.e. its something coming from an earlier version. All the way back to 2000, so I suspect its an earlier pre-OOo feature, which can't arise in practice with no migration from staroffice configs to OpenOffice.org or LibreOffice. Change-Id: I9f248baadb20633da129d3bcacce3d7f92ef7510 --- cui/source/dialogs/cuigaldlg.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'cui/source/dialogs/cuigaldlg.cxx') diff --git a/cui/source/dialogs/cuigaldlg.cxx b/cui/source/dialogs/cuigaldlg.cxx index db1369decbb3..51f83198fa31 100644 --- a/cui/source/dialogs/cuigaldlg.cxx +++ b/cui/source/dialogs/cuigaldlg.cxx @@ -681,7 +681,7 @@ void TPGalleryThemeGeneral::SetXChgData( ExchangeData* _pData ) String aObjStr( CUI_RES( RID_SVXSTR_GALLERYPROPS_OBJECT ) ); String aAccess; String aType( SVX_RES( RID_SVXSTR_GALLERYPROPS_GALTHEME ) ); - sal_Bool bReadOnly = pThm->IsReadOnly() && !pThm->IsImported(); + sal_Bool bReadOnly = pThm->IsReadOnly(); aEdtMSName.SetHelpId( HID_GALLERY_EDIT_MSNAME ); aEdtMSName.SetText( pThm->GetName() ); @@ -722,9 +722,7 @@ void TPGalleryThemeGeneral::SetXChgData( ExchangeData* _pData ) // set image sal_uInt16 nId; - if( pThm->IsImported() ) - nId = RID_SVXBMP_THEME_IMPORTED_BIG; - else if( pThm->IsReadOnly() ) + if( pThm->IsReadOnly() ) nId = RID_SVXBMP_THEME_READONLY_BIG; else if( pThm->IsDefault() ) nId = RID_SVXBMP_THEME_DEFAULT_BIG; -- cgit