mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 22:40:48 +00:00
* Source/NSSegmentedCell.m (-drawSegment:inFrame:withView:):
Use centerScanRect: to position the image. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@39080 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5e9bc2eb92
commit
5775bf08be
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2015-10-18 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
|
* Source/NSSegmentedCell.m (-drawSegment:inFrame:withView:):
|
||||||
|
Use centerScanRect: to position the image.
|
||||||
|
|
||||||
2015-10-17 Fred Kiefer <FredKiefer@gmx.de>
|
2015-10-17 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/NSAttributedString.m (-_substituteFontFor:font:): Use
|
* Source/NSAttributedString.m (-_substituteFontFor:font:): Use
|
||||||
|
|
|
@ -595,6 +595,11 @@
|
||||||
position.y = MAX(NSMidY(frame) - (size.height/2.), 0.);
|
position.y = MAX(NSMidY(frame) - (size.height/2.), 0.);
|
||||||
destinationRect = NSMakeRect(position.x, position.y, size.width, size.height);
|
destinationRect = NSMakeRect(position.x, position.y, size.width, size.height);
|
||||||
|
|
||||||
|
if (nil != view)
|
||||||
|
{
|
||||||
|
destinationRect = [view centerScanRect: destinationRect];
|
||||||
|
}
|
||||||
|
|
||||||
[segmentImage drawInRect: destinationRect
|
[segmentImage drawInRect: destinationRect
|
||||||
fromRect: NSZeroRect
|
fromRect: NSZeroRect
|
||||||
operation: NSCompositeSourceOver
|
operation: NSCompositeSourceOver
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue