Revision: 13913
          http://sourceforge.net/p/skim-app/code/13913
Author:   hofman
Date:     2023-12-17 16:51:17 +0000 (Sun, 17 Dec 2023)
Log Message:
-----------
make sure view is retained before removing it from the array

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

Modified: trunk/SKOverviewView.m
===================================================================
--- trunk/SKOverviewView.m      2023-12-17 16:38:15 UTC (rev 13912)
+++ trunk/SKOverviewView.m      2023-12-17 16:51:17 UTC (rev 13913)
@@ -110,8 +110,9 @@
 - (id)newViewWithIdentifier:(NSString *)identifier {
     for (id view in cachedViews) {
         if ([[view identifier] isEqualToString:identifier]) {
+            id newView = view;
             [cachedViews removeObject:view];
-            return view;
+            return newView;
         }
     }
     return nil;

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



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to