Revision: 30026
http://sourceforge.net/p/bibdesk/svn/30026
Author: hofman
Date: 2026-02-20 16:46:09 +0000 (Fri, 20 Feb 2026)
Log Message:
-----------
make sure row to edit is valid
Modified Paths:
--------------
trunk/bibdesk/BDSKEditor.m
Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m 2026-02-20 15:43:28 UTC (rev 30025)
+++ trunk/bibdesk/BDSKEditor.m 2026-02-20 16:46:09 UTC (rev 30026)
@@ -3285,7 +3285,7 @@
// restore the edited cell and its selection
if (editedTitle) {
NSUInteger editingRow = [fields indexOfObject:editedTitle];
- if (editingRow != NSNotFound && [tableView editedTextRow] !=
(NSInteger)editingRow) {
+ if (editingRow != NSNotFound && [tableView editedTextRow] !=
(NSInteger)editingRow && [tableView numberOfRows] > (NSInteger)editingRow) {
[tableView editColumn:1 row:editingRow withEvent:nil select:NO];
NSTextView *fieldEditor = (NSTextView *)[[self
textFieldAtRow:editingRow] currentEditor];
if (validRanges(selection, [[fieldEditor string] length]))
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