Revision: 27407
          http://sourceforge.net/p/bibdesk/svn/27407
Author:   hofman
Date:     2022-05-13 14:39:24 +0000 (Fri, 13 May 2022)
Log Message:
-----------
make sure the restored edited row is valid

Modified Paths:
--------------
    trunk/bibdesk/BDSKEditor.m

Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m  2022-05-13 06:30:14 UTC (rev 27406)
+++ trunk/bibdesk/BDSKEditor.m  2022-05-13 14:39:24 UTC (rev 27407)
@@ -447,7 +447,7 @@
         // for inherited fields, we should do something here to make sure the 
user doesn't have to go through the warning sheet
                
                if ([[self window] makeFirstResponder:firstResponder] && 
editorFlags.didSetupFields == NO) {
-            if (editedRow != -1)
+            if (editedRow != -1 && editedRow < [tableView numberOfRows])
                 [tableView editColumn:1 row:editedRow withEvent:nil select:NO];
             [textView setSafeSelectedRanges:selection];
         }

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



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to