diff options
Diffstat (limited to 'sc/source/core/data/documen3.cxx')
-rw-r--r-- | sc/source/core/data/documen3.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/data/documen3.cxx b/sc/source/core/data/documen3.cxx index bb68d1c849ef..1b9629c34a9d 100644 --- a/sc/source/core/data/documen3.cxx +++ b/sc/source/core/data/documen3.cxx @@ -76,6 +76,7 @@ #include <refupdatecontext.hxx> #include <scopetools.hxx> #include <filterentries.hxx> +#include <docsh.hxx> #include <globalnames.hxx> #include <LibreOfficeKit/LibreOfficeKitEnums.h> @@ -1093,7 +1094,7 @@ void ScDocument::UpdateReference( // After moving, no clipboard move ref-updates are possible if (rCxt.meMode != URM_COPY && IsClipboardSource()) { - ScDocument* pClipDoc = ScModule::GetClipDoc(); + ScDocument* pClipDoc = static_cast<ScDocShell*>(mpShell)->GetClipDoc(); if (pClipDoc) pClipDoc->GetClipParam().mbCutMode = false; } |