diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2018-08-30 12:59:06 +0200 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2018-08-31 10:27:17 +0200 |
commit | 03b361673d04f31e0602d2988e4df26eaeb53a34 (patch) | |
tree | ec6a2998f05205bdd048836d647ac567d1f1e407 /sc | |
parent | 0383ccd4e7116c3d26edc1f86b7a74fe3cf649bd (diff) |
tdf#112454 Also consider last SCTAB in loop
Since 'rRange.aEnd.Tab()' is valid, it needs to
be included in the loop to get a valid result.
Change-Id: I7b2447e059dc03444c56e7fc0b113e1b618dd510
Reviewed-on: https://gerrit.libreoffice.org/59798
Tested-by: Jenkins
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/document.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx index a1e44600eeac..59c821e4764a 100644 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -6726,7 +6726,7 @@ bool ScDocument::ContainsNotesInRange( const ScRangeList& rRangeList ) const for( size_t i = 0; i < rRangeList.size(); ++i) { const ScRange & rRange = rRangeList[i]; - for( SCTAB nTab = rRange.aStart.Tab(); nTab < rRange.aEnd.Tab(); ++nTab ) + for( SCTAB nTab = rRange.aStart.Tab(); nTab <= rRange.aEnd.Tab(); ++nTab ) { bool bContainsNote = maTabs[nTab]->ContainsNotesInRange( rRange ); if(bContainsNote) |