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:
@@ -897,6 +897,8 @@ void
|
|||||||
SourceView::TextView::SetSourceCode(SourceCode* sourceCode)
|
SourceView::TextView::SetSourceCode(SourceCode* sourceCode)
|
||||||
{
|
{
|
||||||
fMaxLineWidth = -1;
|
fMaxLineWidth = -1;
|
||||||
|
fSelectionStart = fSelectionBase = fSelectionEnd = SelectionPoint(-1, -1);
|
||||||
|
fClickCount = 0;
|
||||||
BaseView::SetSourceCode(sourceCode);
|
BaseView::SetSourceCode(sourceCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user