incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arie...@apache.org
Subject svn commit: r1390062 - /incubator/ooo/trunk/main/sd/source/ui/slideshow/slideshowimpl.cxx
Date Tue, 25 Sep 2012 19:14:50 GMT
Author: arielch
Date: Tue Sep 25 19:14:49 2012
New Revision: 1390062

URL: http://svn.apache.org/viewvc?rev=1390062&view=rev
Log:
WaE: Use unused variable

Modified:
    incubator/ooo/trunk/main/sd/source/ui/slideshow/slideshowimpl.cxx

Modified: incubator/ooo/trunk/main/sd/source/ui/slideshow/slideshowimpl.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sd/source/ui/slideshow/slideshowimpl.cxx?rev=1390062&r1=1390061&r2=1390062&view=diff
==============================================================================
--- incubator/ooo/trunk/main/sd/source/ui/slideshow/slideshowimpl.cxx (original)
+++ incubator/ooo/trunk/main/sd/source/ui/slideshow/slideshowimpl.cxx Tue Sep 25 19:14:49
2012
@@ -3322,12 +3322,14 @@ void SAL_CALL SlideshowImpl::gotoNextSli
 						{
                             if ( maPresSettings.mbShowPauseLogo )
                             {
+                                Graphic aGraphic;
                                 Image aImage;
                                 bool bLoad = vcl::ImageRepository::loadBrandingImage(
                                     rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "logo" )
),
                                     aImage );
                                 OSL_ENSURE( bLoad, "Can't load logo image");
-                                Graphic aGraphic(aImage.GetBitmapEx());
+                                if ( bLoad )
+                                    aGraphic = Graphic(aImage.GetBitmapEx());
                                 mpShowWindow->SetPauseMode( 0, maPresSettings.mnPauseTimeout,
&aGraphic );
                             }
                             else



Mime
View raw message