Kaydet (Commit) 241c9736 authored tarafından Andre Fischer's avatar Andre Fischer

#i119966# Fixed the handling of the "visibility" flag of animations.

Patch by: Steve Yin
Review by: Andre Fischer
üst 8af699cb
...@@ -276,9 +276,9 @@ namespace animcore ...@@ -276,9 +276,9 @@ namespace animcore
// FALLTHROUGH intended // FALLTHROUGH intended
case animations::AnimationNodeType::AUDIO: case animations::AnimationNodeType::AUDIO:
// FALLTHROUGH intended // FALLTHROUGH intended
default: /*default:
// ignore this node, no valuable content for now. // ignore this node, no valuable content for now.
break; break;*/
case animations::AnimationNodeType::SET: case animations::AnimationNodeType::SET:
{ {
...@@ -343,9 +343,9 @@ namespace animcore ...@@ -343,9 +343,9 @@ namespace animcore
// initially. This is currently the only place // initially. This is currently the only place
// where a shape effect influences shape // where a shape effect influences shape
// attributes outside it's effective duration. // attributes outside it's effective duration.
sal_Bool bVisible( sal_False );
if( xAnimateNode->getAttributeName().equalsIgnoreAsciiCaseAscii("visibility") ) if( xAnimateNode->getAttributeName().equalsIgnoreAsciiCaseAscii("visibility") )
{ {
sal_Bool bVisible( sal_False );
uno::Any aAny( xAnimateNode->getTo() ); uno::Any aAny( xAnimateNode->getTo() );
...@@ -371,22 +371,27 @@ namespace animcore ...@@ -371,22 +371,27 @@ namespace animcore
} }
} }
if( bVisible ) /*if( bVisible )
{ {
// target is set to 'visible' at the // target is set to 'visible' at the
// first relevant effect. Thus, target // first relevant effect. Thus, target
// must be initially _hidden_, for the // must be initially _hidden_, for the
// effect to have visible impact. // effect to have visible impact.
mrShapeHash.insert( */
}
// target is set the 'visible' value,
// so we should record the opposite value
mrShapeHash.insert(
XShapeHash::value_type( XShapeHash::value_type(
aTarget, aTarget,
VectorOfNamedValues( VectorOfNamedValues(
1, 1,
beans::NamedValue( beans::NamedValue(
xAnimateNode->getAttributeName(), //xAnimateNode->getAttributeName(),
uno::makeAny( sal_False ) ) ) ) ); ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("visibility")),
} uno::makeAny( !bVisible ) ) ) ) );
} //}
//}
} }
break; break;
} }
......
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