diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-29 15:31:25 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-29 15:34:50 +0100 |
commit | f48f5138ecedd3bb9ec0b454b9fe216001610156 (patch) | |
tree | cf09249073381aed4dd6a9556f87419be8f5f430 /sfx2 | |
parent | 696c8edf7a7731ea4e0f3e4ec4dfeadac2f8ffad (diff) |
convert from NId to FamilyId instead of FamilyId to NId
should be equivalent for comparison purposes
Change-Id: I45ed21ee3b45425b5e1ca39e0774c6d34cd2ee76
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/templdlg.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index 58d903adde4c..011a736c3212 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -253,8 +253,8 @@ sal_Int8 DropListBox_Impl::AcceptDrop( const AcceptDropEvent& rEvt ) { // special case: page styles are allowed to create new styles by example // but not allowed to be created by drag and drop - if( pDialog->nActFamily == SfxCommonTemplateDialog_Impl::SfxFamilyIdToNId( SFX_STYLE_FAMILY_PAGE ) || - pDialog->bNewByExampleDisabled ) + if (pDialog->GetActualFamily() == SFX_STYLE_FAMILY_PAGE || + pDialog->bNewByExampleDisabled) return DND_ACTION_NONE; else return DND_ACTION_COPY; |