summaryrefslogtreecommitdiff
path: root/cui/source/dialogs/cuigaldlg.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-07-16 13:57:43 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-07-16 14:16:47 +0100
commit6d6198393e0677710191248d6f7c9ec15d0f0e0f (patch)
tree4b1c10c38a6613323799857fb432a881be936f3a /cui/source/dialogs/cuigaldlg.cxx
parent995b97632e3e6f0a789f0ee59fc3bcc6f24bf096 (diff)
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
Diffstat (limited to 'cui/source/dialogs/cuigaldlg.cxx')
-rw-r--r--cui/source/dialogs/cuigaldlg.cxx6
1 files changed, 2 insertions, 4 deletions
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;