Revision: 30030
          http://sourceforge.net/p/bibdesk/svn/30030
Author:   hofman
Date:     2026-02-21 16:34:28 +0000 (Sat, 21 Feb 2026)
Log Message:
-----------
first commit edit for empty last row before editing a cell, as the row can be 
removed

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

Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m  2026-02-21 15:46:07 UTC (rev 30029)
+++ trunk/bibdesk/BDSKEditor.m  2026-02-21 16:34:28 UTC (rev 30030)
@@ -2168,7 +2168,10 @@
     } else if (commandSelector != @selector(insertNewline:)) {
         return NO;
     }
-    [tableView editColumn:1 row:row withEvent:nil select:YES];
+    // ending the edit can remove a row and make the row invalid
+    if ((row + 1 < [tableView numberOfRows] || [[[control currentEditor] 
string] length] > 0) ||
+        ([[self window] makeFirstResponder:[self window]] && row < [tableView 
numberOfRows]))
+        [tableView editColumn:1 row:row withEvent:nil select:YES];
     return YES;
 }
 

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