Revision: 4792
          http://skim-app.svn.sourceforge.net/skim-app/?rev=4792&view=rev
Author:   hofman
Date:     2008-10-14 10:01:44 +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/SKPrintableView.m

Modified: trunk/SKPrintableView.m
===================================================================
--- trunk/SKPrintableView.m     2008-10-14 09:29:33 UTC (rev 4791)
+++ trunk/SKPrintableView.m     2008-10-14 10:01:44 UTC (rev 4792)
@@ -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.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to