fClickOffset wasn't maintained when Select() was called. Should improve problem described in bug 494 a bit

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18462 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2006-08-08 15:39:31 +00:00
parent 7b44e811c1
commit 8ba08d23c4
+2 -2
View File
@@ -1434,7 +1434,7 @@ BTextView::Select(int32 startOffset, int32 endOffset)
if (fActive)
Highlight(fSelStart, fSelEnd);
}
fSelStart = fSelEnd = startOffset;
fSelStart = fSelEnd = fClickOffset = startOffset;
} else {
if (fActive) {
// draw only those ranges that are different
@@ -1464,7 +1464,7 @@ BTextView::Select(int32 startOffset, int32 endOffset)
}
}
fSelStart = startOffset;
fSelEnd = endOffset;
fSelEnd = fClickOffset = endOffset;
}
}