Revision: 7032
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7032&view=rev
Author:   hofman
Date:     2011-01-03 12:26:05 +0000 (Mon, 03 Jan 2011)

Log Message:
-----------
use local variable

Modified Paths:
--------------
    trunk/SKMainDocument.m

Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m      2011-01-02 13:07:41 UTC (rev 7031)
+++ trunk/SKMainDocument.m      2011-01-03 12:26:05 UTC (rev 7032)
@@ -181,9 +181,10 @@
 }
 
 - (void)setDataFromTmpData {
-    if ([[tmpData pdfDocument] isLocked])
-        [self tryToUnlockDocument:[tmpData pdfDocument]];
-    [[self mainWindowController] setPdfDocument:[tmpData pdfDocument]];
+    PDFDocument *pdfDoc = [tmpData pdfDocument];
+    if ([pdfDoc isLocked])
+        [self tryToUnlockDocument:pdfDoc];
+    [[self mainWindowController] setPdfDocument:pdfDoc];
     
     [[self mainWindowController] addAnnotationsFromDictionaries:[tmpData 
noteDicts] replace:YES];
     


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to