Kaydet (Commit) 77c55e96 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Any::getValue always returns non-null

What this code looks like it wants to do is check whether rValue is either a
Sequence<sal_Int8> or else a Reference to XBitmap or XGraphic.  It was
introduced with 1ffd7e1a "INTEGRATION: CWS
impresstables2" which mentions "fixed merge error" multiple times in the commit
message.

Change-Id: I81467074efb433e0b52eb82e2c81d4b5890e67e9
üst 1bcfa621
...@@ -1413,8 +1413,6 @@ bool SvxGraphicObject::setPropertyValueImpl( const OUString& rName, const SfxIte ...@@ -1413,8 +1413,6 @@ bool SvxGraphicObject::setPropertyValueImpl( const OUString& rName, const SfxIte
switch( pProperty->nWID ) switch( pProperty->nWID )
{ {
case OWN_ATTR_VALUE_FILLBITMAP: case OWN_ATTR_VALUE_FILLBITMAP:
{
if( rValue.getValue() )
{ {
if( rValue.getValueType() == cppu::UnoType<uno::Sequence< sal_Int8 >>::get() ) if( rValue.getValueType() == cppu::UnoType<uno::Sequence< sal_Int8 >>::get() )
{ {
...@@ -1430,7 +1428,6 @@ bool SvxGraphicObject::setPropertyValueImpl( const OUString& rName, const SfxIte ...@@ -1430,7 +1428,6 @@ bool SvxGraphicObject::setPropertyValueImpl( const OUString& rName, const SfxIte
bOk = true; bOk = true;
} }
} }
}
else if( (rValue.getValueType() == cppu::UnoType<awt::XBitmap>::get()) || (rValue.getValueType() == cppu::UnoType<graphic::XGraphic>::get())) else if( (rValue.getValueType() == cppu::UnoType<awt::XBitmap>::get()) || (rValue.getValueType() == cppu::UnoType<graphic::XGraphic>::get()))
{ {
Reference< graphic::XGraphic> xGraphic( rValue, UNO_QUERY ); Reference< graphic::XGraphic> xGraphic( rValue, UNO_QUERY );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment