summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/ui/app/transobj.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/app/transobj.cxx b/sc/source/ui/app/transobj.cxx
index 1a97a01d049b..b42154945e89 100644
--- a/sc/source/ui/app/transobj.cxx
+++ b/sc/source/ui/app/transobj.cxx
@@ -499,7 +499,8 @@ bool ScTransferObj::WriteObject( SvStream& rOStm, void* pUserObject, sal_uInt32
std::unique_ptr<SvStream> xStrm = aEditHelper.GetSotStorageStream( rFlavor );
bRet = bool(xStrm);
- rOStm.WriteStream(*xStrm);
+ if (bRet)
+ rOStm.WriteStream(*xStrm);
}
}
break;