diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-08-19 23:42:49 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-08-20 09:23:29 +0200 |
commit | 3e97b8a74b20d72d36ac65d3ef091cae79b8cdac (patch) | |
tree | 89a56d5a47bd34233b3ec372997da67bf499752e /sc | |
parent | ae1139f5b8474bd3056ddc1e25173dc0882b944a (diff) |
coverity#1438402 Improper use of negative value
Change-Id: I00aa17ae4fd543faabc4cb7a052e3561da29c1e6
Reviewed-on: https://gerrit.libreoffice.org/59311
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/xml/xmlexprt.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx index c8e83c7c47d8..10ebe9139ca5 100644 --- a/sc/source/filter/xml/xmlexprt.cxx +++ b/sc/source/filter/xml/xmlexprt.cxx @@ -1518,6 +1518,7 @@ void ScXMLExport::OpenRow(const sal_Int32 nTable, const sal_Int32 nStartRow, con bHidden = rRowAttr.rowHidden(nTable, nStartRow, nEndRowHidden); bFiltered = rRowAttr.rowFiltered(nTable, nStartRow, nEndRowFiltered); } + assert(nIndex >= 0 && "coverity#1438402"); OpenNewRow(nIndex, nStartRow, 1, bHidden, bFiltered); } nOpenRow = nStartRow + nRepeatRow - 1; |