diff options
author | Oliver Bolte <obo@openoffice.org> | 2005-01-03 16:34:38 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2005-01-03 16:34:38 +0000 |
commit | d2837b918bb9ba4e405aa98624d2b2bd4417614f (patch) | |
tree | cb11a88c857f0c6268a91d32cf06cbc4dd887ca3 /sfx2/source/dialog/styfitem.cxx | |
parent | 43d63fac1c573bd8496aa49ff6458f6c9ed1cb59 (diff) |
INTEGRATION: CWS res32bit (1.3.214); FILE MERGED
2004/11/08 16:12:45 pl 1.3.214.1: #i34513# changes for 32bit resources
Diffstat (limited to 'sfx2/source/dialog/styfitem.cxx')
-rw-r--r-- | sfx2/source/dialog/styfitem.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sfx2/source/dialog/styfitem.cxx b/sfx2/source/dialog/styfitem.cxx index 2157ccb347e0..bcf9cc3eb85f 100644 --- a/sfx2/source/dialog/styfitem.cxx +++ b/sfx2/source/dialog/styfitem.cxx @@ -2,9 +2,9 @@ * * $RCSfile: styfitem.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: svesik $ $Date: 2004-04-21 13:14:10 $ + * last change: $Author: obo $ $Date: 2005-01-03 17:34:38 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -91,12 +91,12 @@ SfxStyleFamilyItem::SfxStyleFamilyItem( const ResId &rResId ) : Resource( rResId.SetRT( RSC_SFX_STYLE_FAMILY_ITEM ) ) { - USHORT nMask = (USHORT) ReadShortRes(); + ULONG nMask = ReadLongRes(); if(nMask & RSC_SFX_STYLE_ITEM_LIST) { - USHORT nCount = (USHORT) ReadShortRes(); - for( USHORT i = 0; i < nCount; i++ ) + ULONG nCount = ReadLongRes(); + for( ULONG i = 0; i < nCount; i++ ) { SfxFilterTupel *pTupel = new SfxFilterTupel; pTupel->aName = ReadStringRes(); @@ -120,7 +120,7 @@ SfxStyleFamilyItem::SfxStyleFamilyItem( const ResId &rResId ) : } if(nMask & RSC_SFX_STYLE_ITEM_STYLEFAMILY) { - nFamily = (USHORT)ReadShortRes(); + nFamily = (USHORT)ReadLongRes(); } else nFamily = SFX_STYLE_FAMILY_PARA; @@ -156,8 +156,8 @@ SfxStyleFamilies::SfxStyleFamilies( const ResId& rResId ) : Resource( rResId.SetRT( RSC_SFX_STYLE_FAMILIES ).SetAutoRelease( FALSE ) ), aEntryList( 4, 1 ) { - USHORT nCount = (USHORT)ReadShortRes(); - for( USHORT i = 0; i < nCount; i++ ) + ULONG nCount = ReadLongRes(); + for( ULONG i = 0; i < nCount; i++ ) { const ResId aResId((RSHEADER_TYPE *)GetClassRes()); SfxStyleFamilyItem *pItem = new SfxStyleFamilyItem(aResId); |