- Avoid setting the input method active if it is already

- Now we use the textview coordinate system correctly in OffsetAt()


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9780 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2004-11-04 07:36:23 +00:00
parent f4b08feaac
commit 2d60bd8b95
1 changed files with 3 additions and 2 deletions

View File

@ -1907,7 +1907,7 @@ BTextView::OffsetAt(BPoint point) const
int32 offset = line->offset;
int32 limit = (line + 1)->offset;
int32 saveOffset;
float x = fTextRect.left;
float x = 0;
do {
saveOffset = offset;
int32 nextInitial = NextInitialByte(offset);
@ -4442,7 +4442,8 @@ BTextView::HandleInputMethodChanged(BMessage *message)
fSelStart += stringLen;
fClickOffset = fSelEnd = fSelStart;
fInline->SetActive(true);
if (!fInline->IsActive())
fInline->SetActive(true);
Refresh(0, fSelEnd, true, false);
}