diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2017-09-08 03:34:26 +0200 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2017-09-09 00:57:55 +0200 |
commit | fc674ad1b795d74a50cb792368ce7eaee74ca904 (patch) | |
tree | ecd1262fadbff3f24e9cfb22e4733d2374ea79be | |
parent | 3fa8ff7734541c8cb12a5e80b6770cbc7a9347f1 (diff) |
Avoid underflow of unsigned integer which leads a false error message
Change-Id: Ica65a96efe44fb46e25c224298aaff4cd7a40fa6
Reviewed-on: https://gerrit.libreoffice.org/42120
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
-rw-r--r-- | sc/source/core/data/dpoutput.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/dpoutput.cxx b/sc/source/core/data/dpoutput.cxx index 0643c2c2e890..89ac10dcd473 100644 --- a/sc/source/core/data/dpoutput.cxx +++ b/sc/source/core/data/dpoutput.cxx @@ -870,7 +870,7 @@ void ScDPOutput::CalcSizes() ++nPageSize; // filter button above the page fields } - if ( aStartPos.Col() + pRowFields.size() + nColCount - 1 > MAXCOL || + if ( aStartPos.Col() + static_cast<long>(pRowFields.size()) + nColCount - 1 > MAXCOL || aStartPos.Row() + nPageSize + nHeaderSize + pColFields.size() + nRowCount > MAXROW ) { bSizeOverflow = true; |