diff options
author | jan iversen <jani@documentfoundation.org> | 2016-06-09 15:23:06 +0000 |
---|---|---|
committer | jan iversen <jani@documentfoundation.org> | 2016-06-09 15:25:23 +0000 |
commit | 4bcb4774a331cbe7edbb8d92bc6b628e79eee9a6 (patch) | |
tree | 309f569854f45516066817339a334a5472ae8a21 /slideshow/source/engine/transitions/ellipsewipe.cxx | |
parent | d6a6f587a852ba5c993c658b6b6432a65207f5b7 (diff) |
Revert "Slideshow: Add 'Oval' Shape Transition variant"
The patch caused problems with the export filter tests, to check that you need to add --with-export-validation to your autopen.input
see https://cgit.freedesktop.org/libreoffice/contrib/dev-tools/tree/export-validation for more info on how to set it up
This reverts commit 248c5ea771255b54e64394458a321ccf829bbd02.
Change-Id: Ib3b8fa7bf80630feeca1f24dfb1ceb5a945d7162
Reviewed-on: https://gerrit.libreoffice.org/26114
Reviewed-by: jan iversen <jani@documentfoundation.org>
Tested-by: jan iversen <jani@documentfoundation.org>
Diffstat (limited to 'slideshow/source/engine/transitions/ellipsewipe.cxx')
-rw-r--r-- | slideshow/source/engine/transitions/ellipsewipe.cxx | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/slideshow/source/engine/transitions/ellipsewipe.cxx b/slideshow/source/engine/transitions/ellipsewipe.cxx index c3dd9ccb8aaa..35aa9ec69a99 100644 --- a/slideshow/source/engine/transitions/ellipsewipe.cxx +++ b/slideshow/source/engine/transitions/ellipsewipe.cxx @@ -17,7 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include <com/sun/star/animations/TransitionSubType.hpp> + #include <basegfx/numeric/ftools.hxx> #include <basegfx/polygon/b2dpolygontools.hxx> #include "ellipsewipe.hxx" @@ -29,23 +29,12 @@ namespace internal { ::basegfx::B2DPolyPolygon EllipseWipe::operator () ( double t ) { - ::basegfx::B2DPoint rCenter(0.5,0.5); - double fRadius = ::basegfx::pruneScaleValue( t * M_SQRT2 / 2.0 ); - - if( mnSubType == com::sun::star::animations::TransitionSubType::VERTICAL ) - { - //oval : - ::basegfx::B2DPolygon poly ( - ::basegfx::tools::createPolygonFromEllipse( rCenter, fRadius*2, fRadius ) ); //Horizontal Ellipse is rotated by 90 degress - return ::basegfx::B2DPolyPolygon( poly ); - } - else - { - // circle: - ::basegfx::B2DPolygon poly( - ::basegfx::tools::createPolygonFromCircle( rCenter, fRadius ) ); - return ::basegfx::B2DPolyPolygon( poly ); - } + // currently only circle: + ::basegfx::B2DPolygon poly( + ::basegfx::tools::createPolygonFromCircle( + ::basegfx::B2DPoint( 0.5, 0.5 ), + ::basegfx::pruneScaleValue( t * M_SQRT2 / 2.0 ) ) ); + return ::basegfx::B2DPolyPolygon( poly ); } } |