summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/app/seltrans.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/app/seltrans.cxx b/sc/source/ui/app/seltrans.cxx
index b725eb7d3c52..193113429fb8 100644
--- a/sc/source/ui/app/seltrans.cxx
+++ b/sc/source/ui/app/seltrans.cxx
@@ -149,7 +149,7 @@ ScSelectionTransferObj::ScSelectionTransferObj( ScTabView* pSource, ScSelectionT
ScSelectionTransferObj::~ScSelectionTransferObj()
{
ScModule* pScMod = SC_MOD();
- if ( pScMod->GetSelectionTransfer() == this )
+ if (pScMod && pScMod->GetSelectionTransfer() == this)
{
// this is reached when the object wasn't really copied to the selection
// (CopyToSelection has no effect under Windows)