mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 21:40:36 +00:00
* Source/NSPrintInfo.m ([NSPrintInfo -paperSize]): Avoid returning
a nil object return value into a struct. * Printing/GSLPR/GNUmakefile.preamble: Add Source/$(GNUSTEP_TARGET_DIR) includes * Tools/GNUmakefile.preamble: Likewise. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19970 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ab6a805021
commit
19e45d5c7b
4 changed files with 19 additions and 3 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
2004-09-01 Adam Fedor <fedor@gnu.org>
|
||||||
|
|
||||||
|
* Source/NSPrintInfo.m ([NSPrintInfo -paperSize]): Avoid returning
|
||||||
|
a nil object return value into a struct.
|
||||||
|
|
||||||
|
* Printing/GSLPR/GNUmakefile.preamble: Add
|
||||||
|
Source/$(GNUSTEP_TARGET_DIR) includes
|
||||||
|
* Tools/GNUmakefile.preamble: Likewise.
|
||||||
|
|
||||||
2004-09-02 00:17 Alexander Malmberg <alexander@malmberg.org>
|
2004-09-02 00:17 Alexander Malmberg <alexander@malmberg.org>
|
||||||
|
|
||||||
* Source/NSView.m (-replaceSubview:with:): Clarify documentation.
|
* Source/NSView.m (-replaceSubview:with:): Clarify documentation.
|
||||||
|
|
|
@ -8,7 +8,8 @@ ADDITIONAL_OBJCFLAGS +=
|
||||||
ADDITIONAL_CFLAGS +=
|
ADDITIONAL_CFLAGS +=
|
||||||
|
|
||||||
# Additional include directories the compiler should search
|
# Additional include directories the compiler should search
|
||||||
ADDITIONAL_INCLUDE_DIRS += -I../../Headers/Additions -I../../Headers -I../../Source
|
ADDITIONAL_INCLUDE_DIRS += -I../../Headers/Additions -I../../Headers \
|
||||||
|
-I../../Source/$(GNUSTEP_TARGET_DIR)
|
||||||
|
|
||||||
# Additional LDFLAGS to pass to the linker
|
# Additional LDFLAGS to pass to the linker
|
||||||
ADDITIONAL_LDFLAGS +=
|
ADDITIONAL_LDFLAGS +=
|
||||||
|
|
|
@ -256,7 +256,12 @@ static NSPrintInfo *sharedPrintInfo = nil;
|
||||||
|
|
||||||
- (NSSize)paperSize
|
- (NSSize)paperSize
|
||||||
{
|
{
|
||||||
return [(NSValue *)[_info objectForKey:NSPrintPaperSize] sizeValue];
|
/* Don't simplify this. Some OSs can't handle retuning a NULL value into
|
||||||
|
a struct. */
|
||||||
|
NSValue *val = [_info objectForKey:NSPrintPaperSize];
|
||||||
|
if (val == nil)
|
||||||
|
return NSMakeSize(0,0);
|
||||||
|
return [val sizeValue];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (float)rightMargin
|
- (float)rightMargin
|
||||||
|
|
|
@ -21,7 +21,8 @@
|
||||||
# ADDITIONAL_CFLAGS +=
|
# ADDITIONAL_CFLAGS +=
|
||||||
|
|
||||||
# Additional include directories the compiler should search
|
# Additional include directories the compiler should search
|
||||||
ADDITIONAL_INCLUDE_DIRS += -I../Headers/Additions -I../Headers -I../Source
|
ADDITIONAL_INCLUDE_DIRS += -I../Headers/Additions -I../Headers \
|
||||||
|
-I../Source/$(GNUSTEP_TARGET_DIR)
|
||||||
|
|
||||||
# Additional LDFLAGS to pass to the linker
|
# Additional LDFLAGS to pass to the linker
|
||||||
# ADDITIONAL_LDFLAGS +=
|
# ADDITIONAL_LDFLAGS +=
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue