Revision: 7311
http://skim-app.svn.sourceforge.net/skim-app/?rev=7311&view=rev
Author: hofman
Date: 2011-07-01 12:28:42 +0000 (Fri, 01 Jul 2011)
Log Message:
-----------
fix current page and edit field after changing display box as PDFView messes
this up
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2011-07-01 01:21:14 UTC (rev 7310)
+++ trunk/SKPDFView.m 2011-07-01 12:28:42 UTC (rev 7311)
@@ -598,6 +598,16 @@
}
}
+- (void)setDisplayBox:(PDFDisplayBox)box {
+ if (box != [self displayBox]) {
+ PDFPage *page = [self currentPage];
+ [super setDisplayBox:box];
+ if (page && [page isEqual:[self currentPage]] == NO)
+ [self goToPage:page];
+ [self relayoutEditField];
+ }
+}
+
- (void)setDisplaysAsBook:(BOOL)asBook {
if (asBook != [self displaysAsBook]) {
[super setDisplaysAsBook:asBook];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit