summaryrefslogtreecommitdiffstats
path: root/tests/auto/other/qabstractitemmodelutils/dynamictreemodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/other/qabstractitemmodelutils/dynamictreemodel.cpp')
-rw-r--r--tests/auto/other/qabstractitemmodelutils/dynamictreemodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/other/qabstractitemmodelutils/dynamictreemodel.cpp b/tests/auto/other/qabstractitemmodelutils/dynamictreemodel.cpp
index c8698242d5..ecc95d30b6 100644
--- a/tests/auto/other/qabstractitemmodelutils/dynamictreemodel.cpp
+++ b/tests/auto/other/qabstractitemmodelutils/dynamictreemodel.cpp
@@ -228,7 +228,7 @@ void ModelMoveCommand::doCommand()
if (srcParent == destParent)
d = m_destRow - (m_endRow - m_startRow + 1);
else
- d = m_destRow - (m_endRow - m_startRow) + 1;
+ d = m_destRow;
}
foreach (const qint64 id, l)