2
Date: Wed May 13 12:59:08 2009
6
#i101563# fixed crash when loading pptx document
9
cws/impress171/sd/source/ui/unoidl/unopback.cxx
11
Modified: cws/impress171/sd/source/ui/unoidl/unopback.cxx
12
==============================================================================
13
--- sd/source/ui/unoidl/unopback.cxx Wed May 13 12:39:35 2009 (r271861)
14
+++ sd/source/ui/unoidl/unopback.cxx Wed May 13 12:59:08 2009 (r271862)
18
OUString aPropertyName( OUString::createFromAscii(pMap->pName));
19
- if ( pMap->nWID == XATTR_FILLBITMAP )
20
+ switch( pMap->nWID )
22
- if ( ( ( pAny->getValueType() == ::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XBitmap >*)0) ) ||
23
- ( pAny->getValueType() == ::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic >*)0) ) ) &&
24
- ( pMap->nMemberId == MID_BITMAP ) )
25
+ case XATTR_FILLFLOATTRANSPARENCE :
26
+ case XATTR_FILLGRADIENT :
28
- setPropertyValue( aPropertyName, *pAny );
29
+ if ( ( pAny->getValueType() == ::getCppuType((const ::com::sun::star::awt::Gradient*)0) )
30
+ && ( pMap->nMemberId == MID_FILLGRADIENT ) )
32
+ setPropertyValue( aPropertyName, *pAny );
34
+ else if ( ( pAny->getValueType() == ::getCppuType((const ::rtl::OUString*)0) ) &&
35
+ ( pMap->nMemberId == MID_NAME ) )
37
+ setPropertyValue( aPropertyName, *pAny );
40
- else if ( ( pAny->getValueType() == ::getCppuType((const ::rtl::OUString*)0) ) &&
41
- ( ( pMap->nMemberId == MID_NAME ) || ( pMap->nMemberId == MID_GRAFURL ) ) )
43
+ case XATTR_FILLHATCH :
45
- setPropertyValue( aPropertyName, *pAny );
46
+ if ( ( pAny->getValueType() == ::getCppuType((const ::com::sun::star::drawing::Hatch*)0) )
47
+ && ( pMap->nMemberId == MID_FILLHATCH ) )
49
+ setPropertyValue( aPropertyName, *pAny );
51
+ else if ( ( pAny->getValueType() == ::getCppuType((const ::rtl::OUString*)0) ) &&
52
+ ( pMap->nMemberId == MID_NAME ) )
54
+ setPropertyValue( aPropertyName, *pAny );
59
- setPropertyValue( aPropertyName, *pAny );
61
+ case XATTR_FILLBITMAP :
63
+ if ( ( ( pAny->getValueType() == ::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XBitmap >*)0) ) ||
64
+ ( pAny->getValueType() == ::getCppuType((const ::com::sun::star::uno::Reference< ::com::sun::star::graphic::XGraphic >*)0) ) ) &&
65
+ ( pMap->nMemberId == MID_BITMAP ) )
67
+ setPropertyValue( aPropertyName, *pAny );
69
+ else if ( ( pAny->getValueType() == ::getCppuType((const ::rtl::OUString*)0) ) &&
70
+ ( ( pMap->nMemberId == MID_NAME ) || ( pMap->nMemberId == MID_GRAFURL ) ) )
72
+ setPropertyValue( aPropertyName, *pAny );
78
+ setPropertyValue( aPropertyName, *pAny );
84
---------------------------------------------------------------------
85
To unsubscribe, e-mail: allsvn-unsubscribe@openoffice.org
86
For additional commands, e-mail: allsvn-help@openoffice.org