From 2f3b43ff8e3157889013c07402b71fbbeddc19c4 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Mon, 21 May 2007 04:38:05 +0000 Subject: [PATCH] adjust the action button's image placement --- macosx/ActionPopUpButton.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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