-Werror=logical-op (GCC 6)
"logical ‘and’ of equal expressions", as DEFAULT and INHERIT are both defined as zero in the UNOIDL css.animations.AnimationFill constant group Change-Id: I59e53fe9bf73f6eec8f7aa82a216736a79e0d47c
This commit is contained in:
parent
3f507037e6
commit
23622f240d
@ -286,8 +286,7 @@ sal_Int16 AnimationExporter::GetFillMode( const Reference< XAnimationNode >& xNo
|
||||
return nFill;
|
||||
}
|
||||
|
||||
if ( ( nFill == AnimationFill::DEFAULT ) ||
|
||||
( nFill == AnimationFill::INHERIT ) )
|
||||
if ( nFill == AnimationFill::DEFAULT )
|
||||
{
|
||||
if ( nFill != AnimationFill::AUTO )
|
||||
nFill = nFillDefault;
|
||||
|
@ -355,16 +355,14 @@ void BaseNode::dispose()
|
||||
sal_Int16 BaseNode::getRestartMode()
|
||||
{
|
||||
const sal_Int16 nTmp( mxAnimationNode->getRestart() );
|
||||
return (nTmp != animations::AnimationRestart::DEFAULT &&
|
||||
nTmp != animations::AnimationRestart::INHERIT)
|
||||
return nTmp != animations::AnimationRestart::DEFAULT
|
||||
? nTmp : getRestartDefaultMode();
|
||||
}
|
||||
|
||||
sal_Int16 BaseNode::getFillMode()
|
||||
{
|
||||
const sal_Int16 nTmp( mxAnimationNode->getFill() );
|
||||
const sal_Int16 nFill((nTmp != animations::AnimationFill::DEFAULT &&
|
||||
nTmp != animations::AnimationFill::INHERIT)
|
||||
const sal_Int16 nFill(nTmp != animations::AnimationFill::DEFAULT
|
||||
? nTmp : getFillDefaultMode());
|
||||
|
||||
// For AUTO fill mode, SMIL specifies that fill mode is FREEZE,
|
||||
|
Loading…
x
Reference in New Issue
Block a user