mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 05:20:38 +00:00
* 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:
parent
767334b501
commit
11fef998fe
2 changed files with 13 additions and 9 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue