]> cloud.milkyroute.net Git - dolphin.git/commit
Fix possible out of range error inKItemListSizeHintResolver::itemsMoved
authorFrank Reininghaus <frank78ac@googlemail.com>
Sun, 4 Aug 2013 19:46:08 +0000 (21:46 +0200)
committerFrank Reininghaus <frank78ac@googlemail.com>
Sun, 4 Aug 2013 19:46:08 +0000 (21:46 +0200)
commitbedf1db916ae80a3c27062cbd86f476d166fd51c
treeac751669cd31e660e6023acc493f2c780358aff8
parent6467358eeffca2e5888e83c4fbeb995e60c53ada
Fix possible out of range error inKItemListSizeHintResolver::itemsMoved

The function assumes implicitly that the moved range always starts with
the index 0. This is indeed the case at the moment, but it might make
sense to change that in the future. This commit prevents that we get an
out of range problem then.

Thanks to Emmanuel Pescosta for finding this problem, see
https://git.reviewboard.kde.org/r/111808/
src/kitemviews/private/kitemlistsizehintresolver.cpp