diff options
Diffstat (limited to 'slideshow/source/engine/transitions/snakewipe.cxx')
-rw-r--r-- | slideshow/source/engine/transitions/snakewipe.cxx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/slideshow/source/engine/transitions/snakewipe.cxx b/slideshow/source/engine/transitions/snakewipe.cxx index ceaa1d00192b..7196989abd39 100644 --- a/slideshow/source/engine/transitions/snakewipe.cxx +++ b/slideshow/source/engine/transitions/snakewipe.cxx @@ -191,7 +191,9 @@ SnakeWipe::SnakeWipe( sal_Int32 nElements, bool diagonal, bool flipOnYAxis ) else res = calcSnake(t); - return m_flipOnYAxis ? flipOnYAxis(res) : res; + if (m_flipOnYAxis) + return flipOnYAxis(res); + return res; } ::basegfx::B2DPolyPolygon ParallelSnakesWipe::operator () ( double t ) @@ -227,10 +229,15 @@ SnakeWipe::SnakeWipe( sal_Int32 nElements, bool diagonal, bool flipOnYAxis ) aTransform.translate( 0.5, 0.5 ); half.transform( aTransform ); res.append( flipOnYAxis(half) ); - res.append( m_opposite ? flipOnXAxis(half) : half ); + if (m_opposite) + res.append(flipOnXAxis(half)); + else + res.append(half); } - return m_flipOnYAxis ? flipOnYAxis(res) : res; + if (m_flipOnYAxis) + return flipOnYAxis(res); + return res; } } |