diff options
Diffstat (limited to 'svx/source/sdr/overlay/overlayselection.cxx')
-rw-r--r-- | svx/source/sdr/overlay/overlayselection.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/svx/source/sdr/overlay/overlayselection.cxx b/svx/source/sdr/overlay/overlayselection.cxx index f230ff88c051..3c308af8ea09 100644 --- a/svx/source/sdr/overlay/overlayselection.cxx +++ b/svx/source/sdr/overlay/overlayselection.cxx @@ -72,9 +72,8 @@ namespace sdr // not possible when switched off by user return OVERLAY_INVERT; } - else + else if (const OutputDevice* pOut = Application::GetDefaultDevice()) { - const OutputDevice *pOut = Application::GetDefaultDevice(); if(pOut->GetSettings().GetStyleSettings().GetHighContrastMode()) { |