Source/NSGeometry.m (NSStringFromPoint, NSStringFromRect,

NSStringFromSize): Add spaces around '='. (Based on suggestion
from Matthias Hengartner).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21667 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2005-08-22 22:51:02 +00:00
parent 343d1715a0
commit c23afb72ee
2 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2005-08-22 Adam Fedor <fedor@gnu.org>
* Source/NSGeometry.m (NSStringFromPoint, NSStringFromRect,
NSStringFromSize): Add spaces around '='. (Based on suggestion
from Matthias Hengartner).
2005-08-12 Adam Fedor <fedor@gnu.org>
* configure.ac: Check if we can read the psinfo struct from

View file

@ -204,6 +204,8 @@ NSDivideRect(NSRect aRect,
}
/** Get a String Representation... **/
/* NOTE: Spaces around '=' so that old OpenStep implementations can
read our strings (Both GNUstep and Mac OS X can read these as well). */
NSString*
NSStringFromPoint(NSPoint aPoint)
@ -214,7 +216,7 @@ NSStringFromPoint(NSPoint aPoint)
@"{%g, %g}", aPoint.x, aPoint.y];
else
return [NSStringClass stringWithFormat:
@"{x=%g; y=%g}", aPoint.x, aPoint.y];
@"{x = %g; y = %g}", aPoint.x, aPoint.y];
}
NSString*
@ -227,7 +229,7 @@ NSStringFromRect(NSRect aRect)
aRect.origin.x, aRect.origin.y, aRect.size.width, aRect.size.height];
else
return [NSStringClass stringWithFormat:
@"{x=%g; y=%g; width=%g; height=%g}",
@"{x = %g; y = %g; width = %g; height = %g}",
aRect.origin.x, aRect.origin.y, aRect.size.width, aRect.size.height];
}
@ -240,7 +242,7 @@ NSStringFromSize(NSSize aSize)
@"{%g, %g}", aSize.width, aSize.height];
else
return [NSStringClass stringWithFormat:
@"{width=%g; height=%g}", aSize.width, aSize.height];
@"{width = %g; height = %g}", aSize.width, aSize.height];
}
NSPoint