summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/drviewsa.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/view/drviewsa.cxx')
-rw-r--r--sd/source/ui/view/drviewsa.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/sd/source/ui/view/drviewsa.cxx b/sd/source/ui/view/drviewsa.cxx
index 2779e27f7adc..78e86ff87e8a 100644
--- a/sd/source/ui/view/drviewsa.cxx
+++ b/sd/source/ui/view/drviewsa.cxx
@@ -132,8 +132,9 @@ DrawViewShell::DrawViewShell( ViewShellBase& rViewShellBase, vcl::Window* pParen
doShow();
ConfigureAppBackgroundColor();
- SD_MOD()->GetColorConfig().AddListener(this);
- maViewOptions.mnDocBackgroundColor = SD_MOD()->GetColorConfig().GetColorValue(svtools::DOCCOLOR).nColor;
+ SdModule* mod = SdModule::get();
+ mod->GetColorConfig().AddListener(this);
+ maViewOptions.mnDocBackgroundColor = mod->GetColorConfig().GetColorValue(svtools::DOCCOLOR).nColor;
if (comphelper::LibreOfficeKit::isActive())
{
@@ -162,7 +163,7 @@ void DrawViewShell::ImplDestroy()
{
destroyXSlideShowInstance();
- SD_MOD()->GetColorConfig().RemoveListener(this);
+ SdModule::get()->GetColorConfig().RemoveListener(this);
mpSelectionChangeHandler->Disconnect();