Репозитории ALT
S: | 4.8.7-alt25 |
5.1: | 4.6.3-alt1.M51.1 |
4.1: | 4.4.3-alt1.M41.1 |
4.0: | 4.3.4-alt5.M40.1 |
3.0: | 4.0.1-alt1 |
+updates: | 4.0.1-alt2 |
+backports: | 4.2.3-alt7.1.M30 |
Группа :: Система/Библиотеки
Пакет: qt4
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: 0103-qitemselectionrange_intersect.diff
Скачать
Скачать
qt-bugs@ issue : 80738
applied: no
author: teske
QSelectionItemModel::intersect can returns an invalid QItemSelectionRange if the parameters don't have common parents.
Index: src/gui/itemviews/qitemselectionmodel.cpp
===================================================================
--- src/gui/itemviews/qitemselectionmodel.cpp (revision 446120)
+++ src/gui/itemviews/qitemselectionmodel.cpp (working copy)
@@ -197,6 +197,9 @@
QItemSelectionRange QItemSelectionRange::intersect(const QItemSelectionRange &other) const
{
+ if(parent() != other.parent())
+ return QItemSelectionRange();
+
if (model()) {
QModelIndex topLeft = model()->index(qMax(top(), other.top()),
qMax(left(), other.left()),