coverity#1422232 Improper use of negative value

Change-Id: I79b24e175906ca5552f45b6af472c436ffde5fe3
Reviewed-on: https://gerrit.libreoffice.org/45247
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
This commit is contained in:
Caolán McNamara 2017-11-24 16:42:12 +00:00 committed by Eike Rathke
parent ff92dc75a7
commit 644f1451ab

View file

@ -752,7 +752,7 @@ void Chart2Positioner::createPositionMap()
else
pCol = it->second;
sal_uInt32 nInsRow = static_cast<sal_uInt32>(bNoGlue ? nNoGlueRow : nRow1);
auto nInsRow = bNoGlue ? nNoGlueRow : nRow1;
for (SCROW nRow = nRow1; nRow <= nRow2; ++nRow, ++nInsRow)
{
ScSingleRefData aCellData;