diff options
Diffstat (limited to 'vcl/source/animate/Animation.cxx')
-rw-r--r-- | vcl/source/animate/Animation.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/vcl/source/animate/Animation.cxx b/vcl/source/animate/Animation.cxx index 9b1165655186..fb47e9698a3f 100644 --- a/vcl/source/animate/Animation.cxx +++ b/vcl/source/animate/Animation.cxx @@ -175,8 +175,8 @@ bool Animation::Start(OutputDevice& rOut, const Point& rDestPt, const Size& rDes auto itAnimView = std::find_if( maRenderers.begin(), maRenderers.end(), - [&rOut, nRendererId](const std::unique_ptr<AnimationRenderer>& pAnimView) -> bool { - return pAnimView->matches(&rOut, nRendererId); + [&rOut, nRendererId](const std::unique_ptr<AnimationRenderer>& pRenderer) -> bool { + return pRenderer->matches(&rOut, nRendererId); }); if (itAnimView != maRenderers.end()) @@ -188,7 +188,9 @@ bool Animation::Start(OutputDevice& rOut, const Point& rDestPt, const Size& rDes differs = false; } else + { maRenderers.erase(itAnimView); + } } if (maRenderers.empty()) @@ -221,8 +223,8 @@ void Animation::Stop(const OutputDevice* pOut, tools::Long nRendererId) { maRenderers.erase( std::remove_if(maRenderers.begin(), maRenderers.end(), - [=](const std::unique_ptr<AnimationRenderer>& pAnimView) -> bool { - return pAnimView->matches(pOut, nRendererId); + [=](const std::unique_ptr<AnimationRenderer>& pRenderer) -> bool { + return pRenderer->matches(pOut, nRendererId); }), maRenderers.end()); |