mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-24 18:31:20 +00:00
Corrected [drawRect:].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13380 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4aa03221e6
commit
7c4581009e
1 changed files with 5 additions and 1 deletions
|
@ -159,10 +159,14 @@
|
|||
|
||||
- (void)drawRect:(NSRect)aRect
|
||||
{
|
||||
// FIXME
|
||||
NSPoint aPoint;
|
||||
NSRect rect = [self imageRectInRuler];
|
||||
|
||||
aPoint = rect.origin;
|
||||
if ([_rulerView isFlipped])
|
||||
{
|
||||
aPoint.y += rect.size.height;
|
||||
}
|
||||
rect = NSIntersectionRect(aRect, rect);
|
||||
if (NSIsEmptyRect(rect))
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue