Revision: 30063
http://sourceforge.net/p/bibdesk/svn/30063
Author: hofman
Date: 2026-02-26 16:21:51 +0000 (Thu, 26 Feb 2026)
Log Message:
-----------
only use row for field when it exists
Modified Paths:
--------------
trunk/bibdesk/BDSKEditor.m
Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m 2026-02-25 23:03:01 UTC (rev 30062)
+++ trunk/bibdesk/BDSKEditor.m 2026-02-26 16:21:51 UTC (rev 30063)
@@ -3554,8 +3554,11 @@
}
- (void)editTextFieldAtRow:(NSInteger)row forField:(NSString *)field
selection:(NSArray *)selection {
- if (field && (row == -1 || row >= [tableView numberOfRows] || [[fields
objectAtIndex:row] isEqualToString:field] == NO))
- row = [fields indexOfObject:field];
+ if (field && (row == -1 || row >= [tableView numberOfRows] || [[fields
objectAtIndex:row] isEqualToString:field] == NO)) {
+ NSUInteger fieldRow = [fields indexOfObject:field];
+ if (fieldRow != NSNotFound)
+ row = fieldRow;
+ }
if (row != -1 && row < [tableView numberOfRows]) {
[tableView editColumn:1 row:row withEvent:nil select:selection == nil];
if (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