summaryrefslogtreecommitdiff
path: root/slideshow/source/engine/transitions/slidetransitionfactory.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow/source/engine/transitions/slidetransitionfactory.cxx')
-rw-r--r--slideshow/source/engine/transitions/slidetransitionfactory.cxx13
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(