Revision: 3996
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3996&view=rev
Author:   hofman
Date:     2008-06-10 10:50:48 -0700 (Tue, 10 Jun 2008)

Log Message:
-----------
simplify code

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

Modified: trunk/NSScrollView_SKExtensions.m
===================================================================
--- trunk/NSScrollView_SKExtensions.m   2008-06-10 15:17:30 UTC (rev 3995)
+++ trunk/NSScrollView_SKExtensions.m   2008-06-10 17:50:48 UTC (rev 3996)
@@ -126,14 +126,12 @@
     [[[[placards lastObject] superview] superview] removeFromSuperview];
     [placards setArray:newPlacards];
     
-    if ([placards count] == 0 && placards) {
-        CFDictionaryRemoveValue(scrollViewPlacards, self);
-        placards = nil;
-    }
-    
     if ([placards count] != 0) {
         originalSetHasHorizontalScroller(self, _cmd, YES);
         originalSetAutohidesScrollers(self, _cmd, NO);
+    } else if (placards) {
+        CFDictionaryRemoveValue(scrollViewPlacards, self);
+        placards = nil;
     }
     
     [self tile];


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

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to