Fix for bug #30140. The code was not converting the rectangle for

pattern drawing into device space.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@31044 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2010-07-28 09:11:04 +00:00
parent 5d8d6e9138
commit 96c82d4518
4 changed files with 28 additions and 4 deletions

View file

@ -984,7 +984,13 @@ static void clip_svp_callback(void *data, int y, int start,
if (pattern != nil)
{
[self fillRect: NSMakeRect(x, y, w, h) withPattern: pattern];
NSBezierPath *path;
path = [[NSBezierPath alloc] init];
[path appendBezierPathWithRect: NSMakeRect(x, y, w, h)];
[path transformUsingAffineTransform: ctm];
[self fillPath: path withPattern: pattern];
RELEASE(path);
return;
}