diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-12-09 13:19:33 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-12-09 13:20:58 (GMT) |
commit | 7fecd890ce50d86120566acc7e71fcac915a671f (patch) | |
tree | 386473ceb5a731480fb51fa5ce0a114031b0b94c /src/gui | |
parent | c4d66e27ea69b84bf280209fc72239132924930d (diff) | |
download | Qt-7fecd890ce50d86120566acc7e71fcac915a671f.zip Qt-7fecd890ce50d86120566acc7e71fcac915a671f.tar.gz Qt-7fecd890ce50d86120566acc7e71fcac915a671f.tar.bz2 |
Fixed a regression in dock widget resizing
It could happen that they grow much more than the movement of the mouse
Task-number: QTBUG-6499
Reviewed-by: gabi
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/widgets/qdockarealayout.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/qdockarealayout.cpp b/src/gui/widgets/qdockarealayout.cpp index 0a26a77..cf82da0 100644 --- a/src/gui/widgets/qdockarealayout.cpp +++ b/src/gui/widgets/qdockarealayout.cpp @@ -1303,9 +1303,9 @@ QDockAreaLayoutInfo *QDockAreaLayoutInfo::info(const QList<int> &path) index = -index - 1; if (index >= item_list.count()) return this; - if (path.count() == 1 || item_list.at(index).subinfo == 0) + if (path.count() == 1 || item_list[index].subinfo == 0) return this; - return item_list.at(index).subinfo->info(path.mid(1)); + return item_list[index].subinfo->info(path.mid(1)); } QRect QDockAreaLayoutInfo::itemRect(int index) const |