fixed a warning, that amazingly didn't appear here (thanks andrew)

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9759 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2004-11-03 09:40:27 +00:00
parent 16dc60cf10
commit 2f597f2eb7
+1 -1
View File
@@ -1913,7 +1913,7 @@ BTextView::OffsetAt(BPoint point) const
int32 nextInitial = NextInitialByte(offset);
float width = StyledWidth(saveOffset, nextInitial - saveOffset);
if (x + width > point.x) {
if (abs(x + width - point.x) < abs(x - point.x))
if (fabs(x + width - point.x) < fabs(x - point.x))
offset = nextInitial;
break;
}