diff --git a/macosx/ActionPopUpButton.m b/macosx/ActionPopUpButton.m index 0cb1922fb..17c050b41 100644 --- a/macosx/ActionPopUpButton.m +++ b/macosx/ActionPopUpButton.m @@ -41,8 +41,7 @@ - (void) drawRect: (NSRect) rect { NSImage * image = [[self cell] isHighlighted] ? fImagePressed : fImage; - [image drawInRect: rect fromRect: NSMakeRect(0.0, 0.0, [image size].width, [image size].height) - operation: NSCompositeSourceOver fraction: 1.0]; + [image drawInRect: [self bounds] fromRect: NSZeroRect operation: NSCompositeSourceOver fraction: 1.0]; } @end