* Printing/GSLPR/GSLPRPrintOperation.m (-createContext): Always use

the path from the info dictionary if it's set.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20114 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2004-09-23 16:03:23 +00:00
parent 767334b501
commit 11fef998fe
2 changed files with 13 additions and 9 deletions

View file

@ -1,3 +1,8 @@
2004-09-23 18:01 Alexander Malmberg <alexander@malmberg.org>
* Printing/GSLPR/GSLPRPrintOperation.m (-createContext): Always use
the path from the info dictionary if it's set.
2004-09-21 23:57 Alexander Malmberg <alexander@malmberg.org>
* Source/NSCursor.m (_getStandardCursor): Rename to

View file

@ -81,14 +81,15 @@
self = [super initWithView: aView
printInfo: aPrintInfo];
_path = [NSTemporaryDirectory() stringByAppendingPathComponent: @"GSLPRPrintJob-"];
_path = [NSTemporaryDirectory()
stringByAppendingPathComponent: @"GSLPRPrintJob-"];
_path = [_path stringByAppendingString:
[[NSProcessInfo processInfo] globallyUniqueString]];
_path = [_path stringByAppendingPathExtension: @"ps"];
RETAIN( _path );
RETAIN(_path);
return self;
}
@ -132,6 +133,7 @@
- (NSGraphicsContext*)createContext
{
NSMutableDictionary *info;
NSString *output;
//NSDebugMLLog(@"GSPrinting", @"_path is %@", _path);
if (_context)
@ -142,14 +144,11 @@
NSDebugMLLog(@"GSPrinting", @"Creating context.");
info = [_printInfo dictionary];
if (_path == nil)
output = [info objectForKey: NSPrintSavePath];
if (output)
{
NSString *output = [info objectForKey: NSPrintSavePath];
if (output)
{
ASSIGN(_path, output);
}
ASSIGN(_path, output);
}
NSDebugMLLog(@"GSPrinting", @"_path is %@", _path);