RichEdit: fabs/abs

git-svn-id: svn://ultimatepp.org/upp/trunk@6808 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-01-24 11:05:07 +00:00
parent bc8ba9b6b9
commit 7c5304d4e0

View file

@ -198,7 +198,7 @@ void RichEdit::MouseMove(Point p, dword flags)
static bool IsObjectPercent(Sizef percent, int p)
{
return abs(percent.cx - p) < 1 && abs(percent.cy - p) < 1;
return fabs(percent.cx - p) < 1 && fabs(percent.cy - p) < 1;
}
static bool IsObjectDelta(int delta, int d)