diff options
Diffstat (limited to 'slideshow')
-rw-r--r-- | slideshow/source/engine/slide/layermanager.cxx | 4 | ||||
-rw-r--r-- | slideshow/source/engine/slideshowimpl.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/slideshow/source/engine/slide/layermanager.cxx b/slideshow/source/engine/slide/layermanager.cxx index 1f3cbd6c69ae..c46b90245276 100644 --- a/slideshow/source/engine/slide/layermanager.cxx +++ b/slideshow/source/engine/slide/layermanager.cxx @@ -811,8 +811,8 @@ namespace slideshow const bool bThisIsBackgroundDetached( pCurrShape->isBackgroundDetached() ); - if( bLastWasBackgroundDetached == true && - bThisIsBackgroundDetached == false ) + if( bLastWasBackgroundDetached && + !bThisIsBackgroundDetached ) { // discontinuity found - current shape needs to // get into a new layer diff --git a/slideshow/source/engine/slideshowimpl.cxx b/slideshow/source/engine/slideshowimpl.cxx index a101eb1a295e..98d74146908f 100644 --- a/slideshow/source/engine/slideshowimpl.cxx +++ b/slideshow/source/engine/slideshowimpl.cxx @@ -1629,7 +1629,7 @@ sal_Bool SlideShowImpl::setProperty( beans::PropertyValue const& rProperty ) OSL_ENSURE( mbMouseVisible, "setProperty(): User paint overrides invisible mouse" ); - if(nSwitchPenMode == true){ + if(nSwitchPenMode){ // Switch to Pen Mode maSwitchPenMode.reset( nSwitchPenMode ); maEventMultiplexer.notifySwitchPenMode(); @@ -1645,7 +1645,7 @@ sal_Bool SlideShowImpl::setProperty( beans::PropertyValue const& rProperty ) { OSL_ENSURE( mbMouseVisible, "setProperty(): User paint overrides invisible mouse" ); - if(nSwitchEraserMode == true){ + if(nSwitchEraserMode){ // switch to Eraser mode maSwitchEraserMode.reset( nSwitchEraserMode ); maEventMultiplexer.notifySwitchEraserMode(); |