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:
@@ -1913,7 +1913,7 @@ BTextView::OffsetAt(BPoint point) const
|
|||||||
int32 nextInitial = NextInitialByte(offset);
|
int32 nextInitial = NextInitialByte(offset);
|
||||||
float width = StyledWidth(saveOffset, nextInitial - saveOffset);
|
float width = StyledWidth(saveOffset, nextInitial - saveOffset);
|
||||||
if (x + width > point.x) {
|
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;
|
offset = nextInitial;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user