From: <ho...@us...> - 2008-10-14 10:30:10
|
Revision: 13721 http://bibdesk.svn.sourceforge.net/bibdesk/?rev=13721&view=rev Author: hofman Date: 2008-10-14 10:01:34 +0000 (Tue, 14 Oct 2008) Log Message: ----------- always reset bounds of printable view when printing, as other printinfo settings may have changed Modified Paths: -------------- trunk/bibdesk/BDSKPrintableView.m Modified: trunk/bibdesk/BDSKPrintableView.m =================================================================== --- trunk/bibdesk/BDSKPrintableView.m 2008-10-14 09:28:42 UTC (rev 13720) +++ trunk/bibdesk/BDSKPrintableView.m 2008-10-14 10:01:34 UTC (rev 13721) @@ -43,8 +43,10 @@ - (BOOL)knowsPageRange:(NSRangePointer)range { NSPrintInfo *info = [[NSPrintOperation currentOperation] printInfo]; - if (info && NSEqualSizes([info imageablePageBounds].size, [self frame].size) == NO) + if (info) { + [self setFrame:NSZeroRect]; [self setFrame:[info imageablePageBounds]]; + } return [super knowsPageRange:range]; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |