summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-07-25 09:09:15 +0100
committerEike Rathke <erack@redhat.com>2018-07-26 00:19:50 +0200
commitacab09f06fd3016ec551065fadabce8768353c89 (patch)
tree20a73e48ff5fc1ac003832930055c983a5aecb33
parentdf887728db94a008554ebf7caac30a7ae4fdb1d0 (diff)
Resolves: tdf#118919 crash on double click ole object
Change-Id: Id7b3df447db56f6f80d6255dabdcc7f6ab149e95 Reviewed-on: https://gerrit.libreoffice.org/57954 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
-rw-r--r--embeddedobj/source/msole/oleembed.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/embeddedobj/source/msole/oleembed.cxx b/embeddedobj/source/msole/oleembed.cxx
index 64d95c3d7a56..77a022442917 100644
--- a/embeddedobj/source/msole/oleembed.cxx
+++ b/embeddedobj/source/msole/oleembed.cxx
@@ -658,7 +658,7 @@ namespace
{
bool lcl_CopyStream(const uno::Reference<io::XInputStream>& xIn, const uno::Reference<io::XOutputStream>& xOut, sal_Int32 nMaxCopy = SAL_MAX_INT32)
{
- if (nMaxCopy == 0)
+ if (nMaxCopy <= 0)
return false;
const sal_Int32 nChunkSize = 4096;