mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 12:01:16 +00:00
argument is float, so use fabs() and cast to int
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@39012 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
12c6bf8502
commit
4a816635df
1 changed files with 4 additions and 4 deletions
|
@ -109,13 +109,13 @@
|
||||||
switch (_border)
|
switch (_border)
|
||||||
{
|
{
|
||||||
case Top:
|
case Top:
|
||||||
return abs (_position - NSMaxY(frame));
|
return (int) fabs (_position - NSMaxY(frame));
|
||||||
case Bottom:
|
case Bottom:
|
||||||
return abs (_position - NSMinY(frame));
|
return (int) fabs (_position - NSMinY(frame));
|
||||||
case Left:
|
case Left:
|
||||||
return abs (_position - NSMinX(frame));
|
return (int) fabs (_position - NSMinX(frame));
|
||||||
case Right:
|
case Right:
|
||||||
return abs (_position - NSMaxX(frame));
|
return (int) fabs (_position - NSMaxX(frame));
|
||||||
default:
|
default:
|
||||||
return guideSpacing;
|
return guideSpacing;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue