Index: source/filter/eppt/epptso.cxx =================================================================== RCS file: /cvs/graphics/sd/source/filter/eppt/epptso.cxx,v --- source/filter/eppt/epptso.cxx 10 May 2007 15:24:02 -0000 1.98 +++ source/filter/eppt/epptso.cxx 1 Aug 2007 17:26:19 -0000 @@ -2560,8 +2560,14 @@ aGraphicURL = ( *(::rtl::OUString*)pValue ); else if ( aPropName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "GraphicSize" ) ) ) { - if ( pPropValue[ i ].Value.getValueType() == ::getCppuType( (::com::sun::star::awt::Size*)0) ) - aBuGraSize = *(Size*)pValue; + if ( pPropValue[ i ].Value.getValueType() == ::getCppuType( (::com::sun::star::awt::Size*)0) ) + { + // don't cast awt::Size to Size as on 64-bits they are not the same. + ::com::sun::star::awt::Size aSize; + pPropValue[ i ].Value >>= aSize; + aBuGraSize.nA = aSize.Width; + aBuGraSize.nB = aSize.Height; + } } else if ( aPropName.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "StartWith" ) ) ) nStartWith = *( (sal_Int16*)pValue );