diff options
-rw-r--r-- | sc/source/core/data/document.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx index 06a1a532e628..5d6fc10c3202 100644 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -2567,7 +2567,8 @@ void ScDocument::SetClipParam(const ScClipParam& rParam) bool ScDocument::IsClipboardSource() const { - if (bIsClip || mpShell == nullptr) + if (bIsClip || mpShell == nullptr || + (mpShell && mpShell->IsLoading())) return false; ScDocument* pClipDoc = static_cast<ScDocShell*>(mpShell)->GetClipDoc(); |