diff options
author | David Tardon <dtardon@redhat.com> | 2012-08-17 10:19:16 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-08-17 14:42:52 +0200 |
commit | 65435f2197e1d745394c175f76a1584e5ce94b75 (patch) | |
tree | 677524e19d5bfd5e39a00ee1f0e4fd1010e56e3f /slideshow | |
parent | 19d13fd16e11f366c60e560896f49afcabc8e747 (diff) |
do not paint background if no fade color was set
The condition got lost in commit 2e8b2e6de14d325863d9bc419a461b75c3aaf3d0 .
Change-Id: I8c9a6baf56dfe36d55e02476823e2847d77a7f58
Diffstat (limited to 'slideshow')
-rw-r--r-- | slideshow/source/engine/transitions/slidetransitionfactory.cxx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/slideshow/source/engine/transitions/slidetransitionfactory.cxx b/slideshow/source/engine/transitions/slidetransitionfactory.cxx index 4be7f1cc52ce..60ea705629cf 100644 --- a/slideshow/source/engine/transitions/slidetransitionfactory.cxx +++ b/slideshow/source/engine/transitions/slidetransitionfactory.cxx @@ -420,11 +420,14 @@ void FadingSlideChange::prepareForRun( const ViewEntry& rViewEntry, const cppcanvas::CanvasSharedPtr& rDestinationCanvas ) { - // clear page to given fade color. 'Leaving' slide is - // painted atop of that, but slowly fading out. - fillPage( rDestinationCanvas, - ::basegfx::B2DSize( getEnteringSlideSizePixel( rViewEntry.mpView ) ), - *maFadeColor ); + if ( maFadeColor ) + { + // clear page to given fade color. 'Leaving' slide is + // painted atop of that, but slowly fading out. + fillPage( rDestinationCanvas, + ::basegfx::B2DSize( getEnteringSlideSizePixel( rViewEntry.mpView ) ), + *maFadeColor ); + } } void FadingSlideChange::performIn( |