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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user