diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-07-25 09:09:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-07-25 12:42:26 +0200 |
commit | 1ac55de4674035c7306df4d66db088c3b8f99438 (patch) | |
tree | 4392bf0b1bdd9ebc4afa55e50bb56b121f182ded /embeddedobj | |
parent | 5da6001918536d3d4c71410ea7e28caf3192897d (diff) |
Resolves: tdf#118919 crash on double click ole object
Change-Id: Id7b3df447db56f6f80d6255dabdcc7f6ab149e95
Reviewed-on: https://gerrit.libreoffice.org/57953
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'embeddedobj')
-rw-r--r-- | embeddedobj/source/msole/oleembed.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embeddedobj/source/msole/oleembed.cxx b/embeddedobj/source/msole/oleembed.cxx index f117496a6ef4..b9854a076f58 100644 --- a/embeddedobj/source/msole/oleembed.cxx +++ b/embeddedobj/source/msole/oleembed.cxx @@ -663,7 +663,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; |