diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-14 09:32:02 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-14 09:33:10 +0000 |
commit | 44bb0cc3aa4f5697078d393d5724d28f4b05f5a8 (patch) | |
tree | 7505240b3ee82c092aa5813b102088896533868a /oox | |
parent | 0bec1401680bce1b2aaaa3e941b083d3427d481b (diff) |
Related: #i119844# align from/to types with DFF_msofbtAnimateRotationData
Change-Id: I43bf12b69892614a6054a14de76bbbd4e46c2ee9
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/ppt/timenodelistcontext.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/oox/source/ppt/timenodelistcontext.cxx b/oox/source/ppt/timenodelistcontext.cxx index 3c798f2fa526..14bd0e284061 100644 --- a/oox/source/ppt/timenodelistcontext.cxx +++ b/oox/source/ppt/timenodelistcontext.cxx @@ -714,21 +714,22 @@ namespace oox { namespace ppt { pNode->getNodeProperties()[ NP_TRANSFORMTYPE ] = makeAny((sal_Int16)AnimationTransformType::ROTATE); - // TODO make sure the units are OK + // see also DFF_msofbtAnimateRotationData in + // sd/source/filter/ppt/pptinanimations.cxx if(attribs.hasAttribute( XML_by ) ) { sal_Int32 nBy = attribs.getInteger( XML_by, 0 ); - pNode->setBy( makeAny( (double)nBy ) ); + pNode->setBy( makeAny( (double) nBy ) ); } if(attribs.hasAttribute( XML_from ) ) { sal_Int32 nFrom = attribs.getInteger( XML_from, 0 ); - pNode->setFrom( makeAny( nFrom ) ); + pNode->setFrom( makeAny( (double) nFrom ) ); } if(attribs.hasAttribute( XML_to ) ) { sal_Int32 nTo = attribs.getInteger( XML_to, 0 ); - pNode->setTo( makeAny( nTo ) ); + pNode->setTo( makeAny( (double) nTo ) ); } } |