mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 18:11:06 +00:00
Fix image positioning in NSCell
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4043 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
293ecacd91
commit
cbbfd93df2
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,12 @@
|
|||
Wed Apr 7 21:35:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Source/NSCell.m: Position image correctly in flipped view.
|
||||
|
||||
Wed Apr 7 10:10:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Images/GNUmakefile: Install all images
|
||||
* Source/NSControl.m: ([setCell:]) permit nil cell values.
|
||||
|
||||
Tue Apr 6 14:50:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
Applied Felipes fixes from mgstep.
|
||||
|
|
|
@ -635,7 +635,7 @@ static inline NSPoint centerSizeInRect(NSSize innerSize, NSRect outerRect)
|
|||
* so we must adjust the position to take account of a flipped view.
|
||||
*/
|
||||
if ([control_view isFlipped])
|
||||
position.y -= size.height;
|
||||
position.y += size.height;
|
||||
[image compositeToPoint: position operation: NSCompositeCopy];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue