diff options
| author | Peter Penz <[email protected]> | 2012-01-30 14:06:07 +0100 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2012-01-30 16:52:06 +0100 |
| commit | 03bed41e735d3f5ab26a406a3e5025c7023a4700 (patch) | |
| tree | a2ab6cff05c4629473fbbcaf6c8841a3d157576e /src/kitemviews/kitemlistview.cpp | |
| parent | e283a9f7d9cd0e77c159316e4f98108b28f917ce (diff) | |
Only move the items if at least one direction is within the item size
Diffstat (limited to 'src/kitemviews/kitemlistview.cpp')
| -rw-r--r-- | src/kitemviews/kitemlistview.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kitemviews/kitemlistview.cpp b/src/kitemviews/kitemlistview.cpp index a0820f7e5..263c04461 100644 --- a/src/kitemviews/kitemlistview.cpp +++ b/src/kitemviews/kitemlistview.cpp @@ -1457,8 +1457,8 @@ bool KItemListView::moveWidget(KItemListWidget* widget, const QPointF& newPos) const bool startMovingAnim = xMax <= 0 || yMax <= 0 - || qAbs(oldPos.x() - newPos.x()) <= xMax - || qAbs(oldPos.y() - newPos.y()) <= yMax; + || qAbs(oldPos.x() - newPos.x()) < xMax + || qAbs(oldPos.y() - newPos.y()) < yMax; if (startMovingAnim) { // The moving animation is done inside a column or a row. m_animation->start(widget, KItemListViewAnimation::MovingAnimation, newPos); |
