* Source/GSThemeTools.m: Fix unflipped/flipped coordinates bug

in the 9-patch content rect parsing code. Add some comments.
Simplify contentRectForRect: implementation.
* Source/GSThemeDrawing.m (-browserHeaderDrawingRectForCell:...):
Use -contentRectForRect: to get the content rect instead of
incorrectly reading from ivar. Fixes broken text positioning
in browser header with Nesedah theme.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37217 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Wasylishen 2013-10-12 04:33:59 +00:00
parent c713f8cb04
commit 1411fdfa3a
3 changed files with 27 additions and 20 deletions

View file

@ -1843,11 +1843,8 @@ static NSDictionary *titleTextAttributes[3] = {nil, nil, nil};
}
else
{
// FIXME: We assume the button's top and right padding are the same as
// its bottom and left.
return NSInsetRect(rect,
tiles->contentRect.origin.x,
tiles->contentRect.origin.y);
NSRect result = [tiles contentRectForRect: rect];
return result;
}
}