Kaydet (Commit) 432f7668 authored tarafından Eike Rathke's avatar Eike Rathke

Assert that GetClipDoc() is indeed a clipboard document, tdf#108612 related

Change-Id: Idb782bc04239e28967830fae9e89a7433579669b
üst 0df16daf
...@@ -676,7 +676,11 @@ ScDocument* ScModule::GetClipDoc() ...@@ -676,7 +676,11 @@ ScDocument* ScModule::GetClipDoc()
// called from document // called from document
ScTransferObj* pObj = ScTransferObj::GetOwnClipboard( nullptr ); ScTransferObj* pObj = ScTransferObj::GetOwnClipboard( nullptr );
if (pObj) if (pObj)
return pObj->GetDocument(); {
ScDocument* pDoc = pObj->GetDocument();
assert((!pDoc || pDoc->IsClipboard()) && "Document is not clipboard, how can that be?");
return pDoc;
}
return nullptr; return nullptr;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment