do not paint background if no fade color was set

The condition got lost in commit 2e8b2e6de1 .

Change-Id: I8c9a6baf56dfe36d55e02476823e2847d77a7f58
This commit is contained in:
David Tardon 2012-08-17 10:19:16 +02:00
parent 19d13fd16e
commit 65435f2197

View file

@ -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(