mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 18:11:06 +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
|
@ -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
|
||||
|
|
|
@ -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…
Reference in a new issue