From 4124ae61f618bd22a9beb7f41717c3718ea2170e Mon Sep 17 00:00:00 2001 From: avenjamin Date: Mon, 29 Jun 2009 09:19:35 +0000 Subject: - Make SSHQuestionDialog and printAccessory XIB's localizable - Fix UI glitch where some BWAnchoredButtonCells would lose their image. --- Frameworks/BWToolkitFramework.framework/BWAnchoredButtonCell.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Frameworks') diff --git a/Frameworks/BWToolkitFramework.framework/BWAnchoredButtonCell.m b/Frameworks/BWToolkitFramework.framework/BWAnchoredButtonCell.m index b8bae016..74bc1a71 100644 --- a/Frameworks/BWToolkitFramework.framework/BWAnchoredButtonCell.m +++ b/Frameworks/BWToolkitFramework.framework/BWAnchoredButtonCell.m @@ -161,8 +161,9 @@ static float scaleFactor = 1.0f; { NSImage *image; - image = ([self state] == NSOffState ? [self image] : [self alternateImage]); - + image = ([self state] == NSOffState || [self alternateImage] == nil ? [self image] : [self alternateImage]); + + if (image != nil) { [image setScalesWhenResized:NO]; -- cgit v1.2.3