summaryrefslogtreecommitdiff
path: root/sd/source/ui/slidesorter/controller/SlsCurrentSlideManager.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/slidesorter/controller/SlsCurrentSlideManager.cxx')
-rw-r--r--sd/source/ui/slidesorter/controller/SlsCurrentSlideManager.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlsCurrentSlideManager.cxx b/sd/source/ui/slidesorter/controller/SlsCurrentSlideManager.cxx
index 1d9970bb201b..538187cdfb8a 100644
--- a/sd/source/ui/slidesorter/controller/SlsCurrentSlideManager.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsCurrentSlideManager.cxx
@@ -121,7 +121,7 @@ void CurrentSlideManager::SwitchCurrentSlide (
const SharedPageDescriptor& rpDescriptor,
const bool bUpdateSelection)
{
- if (rpDescriptor.get() == nullptr || mpCurrentSlide==rpDescriptor)
+ if (!rpDescriptor || mpCurrentSlide==rpDescriptor)
return;
ReleaseCurrentSlide();