From c0a86ff5eaaddca1f90da3fef2734bea8f7b7f4d Mon Sep 17 00:00:00 2001 From: ericwa Date: Sat, 31 Dec 2011 22:37:55 +0000 Subject: [PATCH] * 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. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34373 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 7 +++++++ Source/NSPrintOperation.m | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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;