diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-11-28 14:11:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-11-28 19:02:06 +0100 |
commit | c71d886120998884fdd16a862826f59883d9a114 (patch) | |
tree | 6967a263d1af03b6765d68fc9a72ff8b54a0afc0 /sc/qa/unit/mark_test.cxx | |
parent | 523189a32e8d867b71d23f8aa88708ae2757f727 (diff) |
fix a few places using SCROW/SCCOL datatypes incorrectly
Found while looking for problems in another patch.
This will become more important with "jumbo sheets" when using the wrong
datatype can mean overflow
Change-Id: I7370ffd8a6edc33a5e613242735e4c7b9eaf830d
Reviewed-on: https://gerrit.libreoffice.org/83991
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/qa/unit/mark_test.cxx')
-rw-r--r-- | sc/qa/unit/mark_test.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/qa/unit/mark_test.cxx b/sc/qa/unit/mark_test.cxx index 6c2d3e870370..6cd63a02de6b 100644 --- a/sc/qa/unit/mark_test.cxx +++ b/sc/qa/unit/mark_test.cxx @@ -307,7 +307,7 @@ void Test::testMultiMark( const MultiMarkTestData& rMarksData ) CPPUNIT_ASSERT( aMark.IsAllMarked( rRange ) ); SCROW nRow1 = rRange.aStart.Row(), nRow2 = rRange.aEnd.Row(); SCCOL nCol1 = rRange.aStart.Col(), nCol2 = rRange.aEnd.Col(); - for ( SCROW nColIter = nCol1; nColIter <= nCol2; ++nColIter ) + for ( SCCOL nColIter = nCol1; nColIter <= nCol2; ++nColIter ) CPPUNIT_ASSERT( aMultiSel.IsAllMarked( nColIter, nRow1, nRow2 ) ); } |