diff --git a/ChangeLog b/ChangeLog
index 5c7e6bd2a..b2947f698 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2009-02-04 01:53-EST Gregory John Casamento
See Also: -applicationIconImage
NSEnumerator *iterator = [[self windows] objectEnumerator]; NSWindow *current; NSImage *old_app_icon = _app_icon; + NSSize miniWindowSize = [_app_icon_window frame].size; + NSSize imageSize = [anImage size]; RETAIN(old_app_icon); [_app_icon setName: nil]; [anImage setName: @"NSApplicationIcon"]; [anImage setScalesWhenResized: YES]; - [anImage setSize: NSMakeSize(48,48)]; + + // restrict size when the icon is larger than the mini window. + if(imageSize.width > miniWindowSize.width || + imageSize.height > miniWindowSize.height) + { + [anImage setSize: miniWindowSize]; + } + ASSIGN(_app_icon, anImage); [_main_menu _organizeMenu]; // Let horizontal menu change icon diff --git a/Source/NSLayoutManager.m b/Source/NSLayoutManager.m index 064334198..69abad623 100644 --- a/Source/NSLayoutManager.m +++ b/Source/NSLayoutManager.m @@ -2292,11 +2292,12 @@ no_soft_invalidation: if ([aDecoder allowsKeyedCoding]) { + /* int i; - id delegate = [aDecoder decodeObjectForKey: @"NSDelegate"]; int flags; NSArray *array = [aDecoder decodeObjectForKey: @"NSTextContainers"]; NSTextStorage *storage = [aDecoder decodeObjectForKey: @"NSTextStorage"]; + id delegate = [aDecoder decodeObjectForKey: @"NSDelegate"]; if ([aDecoder containsValueForKey: @"NSLMFlags"]) { @@ -2311,7 +2312,7 @@ no_soft_invalidation: { [self addTextContainer: [array objectAtIndex: i]]; } - + */ return self; } else