Clear selection on file change.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31747 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent 2009-07-25 00:42:38 +00:00
parent c31af1b060
commit bd4b1ce4f7

View File

@ -897,6 +897,8 @@ void
SourceView::TextView::SetSourceCode(SourceCode* sourceCode)
{
fMaxLineWidth = -1;
fSelectionStart = fSelectionBase = fSelectionEnd = SelectionPoint(-1, -1);
fClickCount = 0;
BaseView::SetSourceCode(sourceCode);
}