diff --git a/ChangeLog b/ChangeLog index 7a11548a0..1465eab79 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-12-31 Eric Wasylishen + + * Source/NSPrintOperation.m (_print): Fix read of uninitialized + variable, which was breaking printing of wrap-to-page mode in + TextEdit. TODO: Run the printing code through valgrind, there is + a lot of suspicious code. + 2011-12-29 Wolfgang Lux * Source/NSTextView.m(-initWithFrame:textContainer:, diff --git a/Source/NSPrintOperation.m b/Source/NSPrintOperation.m index 9b4ad0aae..4b3de59a1 100644 --- a/Source/NSPrintOperation.m +++ b/Source/NSPrintOperation.m @@ -940,7 +940,7 @@ scaleRect(NSRect rect, double scale) { int i, dir; BOOL knowsPageRange, allPages; - NSRange viewPageRange; + NSRange viewPageRange = NSMakeRange(1, 0); NSMutableDictionary *dict; NSNumber *value; page_info_t info;