summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@suse.com>2012-10-10 10:39:17 +0200
committerThorsten Behrens <tbehrens@suse.com>2012-10-10 12:03:32 +0200
commitd32ee009e07a98e54237872263eeb53d4812e805 (patch)
treeaab773509ff46c9720311fe6be789c9b991560c6 /filter
parentf64457b19cea3c16c0a53f1d98134d48833ef4ed (diff)
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
Diffstat (limited to 'filter')
-rw-r--r--filter/source/svg/svgexport.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/filter/source/svg/svgexport.cxx b/filter/source/svg/svgexport.cxx
index 905500add847..d8f3a848793d 100644
--- a/filter/source/svg/svgexport.cxx
+++ b/filter/source/svg/svgexport.cxx
@@ -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;