projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Alt-A
[quassel.git]
/
src
/
uisupport
/
flatproxymodel.cpp
diff --git
a/src/uisupport/flatproxymodel.cpp
b/src/uisupport/flatproxymodel.cpp
index
ef19074
..
1d54380
100644
(file)
--- a/
src/uisupport/flatproxymodel.cpp
+++ b/
src/uisupport/flatproxymodel.cpp
@@
-652,7
+652,7
@@
FlatProxyModel::SourceItem *FlatProxyModel::SourceItem::findChild(int proxyPos)
int start = 0;
int end = _childs.count() - 1;
int pivot;
- while(end - start
!=
1) {
+ while(end - start
>
1) {
pivot = (end + start) / 2;
if(_childs[pivot]->pos() > proxyPos)
end = pivot;