Kaydet (Commit) d32ee009 authored tarafından Thorsten Behrens's avatar Thorsten Behrens

Don't assume we're exporting Impress to svg, unconditionally

Svg export is also used on Draw documents, which do not bear the
transition properties. Guard accordingly.

Change-Id: I2e4a5d478a8de8621265a0d1de16bd60b1f47cc1
üst f64457b1
......@@ -1123,7 +1123,8 @@ sal_Bool SVGFilter::implGenerateMetaData()
// We look for a slide transition.
// Transition properties are exported together with animations.
sal_Int16 nTransitionType(0);
if( xPropSet->getPropertyValue( B2UCONST( "TransitionType" ) ) >>= nTransitionType )
if( xPropSet->getPropertySetInfo()->hasPropertyByName( "TransitionType" ) &&
(xPropSet->getPropertyValue( "TransitionType" ) >>= nTransitionType) )
{
sal_Int16 nTransitionSubType(0);
if( xPropSet->getPropertyValue( B2UCONST( "TransitionSubtype" ) ) >>= nTransitionSubType )
......@@ -1187,7 +1188,7 @@ sal_Bool SVGFilter::implExportAnimations()
{
Reference< XPropertySet > xProps( mSelectedPages[i], UNO_QUERY );
if( xProps.is() )
if( xProps.is() && xProps->getPropertySetInfo()->hasPropertyByName( "TransitionType" ) )
{
sal_Int16 nTransition = 0;
xProps->getPropertyValue( B2UCONST( "TransitionType" ) ) >>= nTransition;
......
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