summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2018-11-06 12:01:34 +0100
committerAndras Timar <andras.timar@collabora.com>2021-10-10 22:26:34 +0200
commit98a179d4a91d80962efb103c2ba6f4bd720fa73d (patch)
tree9bdf22373d50d35ac7ae3af0191e6c78d02a29c4
parent2d199028d39135c3c24ad2071000bc0603127c69 (diff)
tdf#121198: fix crash in SdrPage::GetPageNum()
Regression from 9348b322a5c230dfcc2231661b73e480b130fcd9 Change-Id: Ibf9d6b65f0dbcc3a751e3ac5f3dbc28d908d6c25 Reviewed-on: https://gerrit.libreoffice.org/62952 Tested-by: Jenkins (cherry picked from commit ebd24b39eee5ac72d33ad731e31469cf8f330631) Reviewed-on: https://gerrit.libreoffice.org/62965 Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
-rw-r--r--sd/source/ui/slidesorter/controller/SlsInsertionIndicatorHandler.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlsInsertionIndicatorHandler.cxx b/sd/source/ui/slidesorter/controller/SlsInsertionIndicatorHandler.cxx
index 323dbe948fe9..9dfd02d700b8 100644
--- a/sd/source/ui/slidesorter/controller/SlsInsertionIndicatorHandler.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsInsertionIndicatorHandler.cxx
@@ -220,7 +220,7 @@ bool InsertionIndicatorHandler::IsInsertionTrivial (
// to check that the insertion position is not directly in front or
// directly behind the selection and thus moving the selection there
// would not change the model.
- return nInsertionIndex >= nFirstIndex && nInsertionIndex < nLastIndex;
+ return nInsertionIndex >= nFirstIndex && nInsertionIndex <= (nLastIndex+1);
}
bool InsertionIndicatorHandler::IsInsertionTrivial (const sal_Int8 nDndAction)