diff options
Diffstat (limited to 'sd/source/ui/slidesorter/controller/SlsInsertionIndicatorHandler.cxx')
-rw-r--r-- | sd/source/ui/slidesorter/controller/SlsInsertionIndicatorHandler.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlsInsertionIndicatorHandler.cxx b/sd/source/ui/slidesorter/controller/SlsInsertionIndicatorHandler.cxx index 6e940bf7e899..f162147acdd5 100644 --- a/sd/source/ui/slidesorter/controller/SlsInsertionIndicatorHandler.cxx +++ b/sd/source/ui/slidesorter/controller/SlsInsertionIndicatorHandler.cxx @@ -220,10 +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. - if (nInsertionIndex<nFirstIndex || nInsertionIndex>(nLastIndex+1)) - return false; - - return true; + return nInsertionIndex >= nFirstIndex && nInsertionIndex < nLastIndex; } bool InsertionIndicatorHandler::IsInsertionTrivial (const sal_Int8 nDndAction) |