Revision: 27428 http://sourceforge.net/p/bibdesk/svn/27428 Author: hofman Date: 2022-05-17 14:58:26 +0000 (Tue, 17 May 2022) Log Message: ----------- was comparing wrong row index variable
Modified Paths: -------------- trunk/bibdesk/BDSKEditor.m Modified: trunk/bibdesk/BDSKEditor.m =================================================================== --- trunk/bibdesk/BDSKEditor.m 2022-05-17 14:56:26 UTC (rev 27427) +++ trunk/bibdesk/BDSKEditor.m 2022-05-17 14:58:26 UTC (rev 27428) @@ -3422,7 +3422,7 @@ // restore the edited cell and its selection if (editedTitle) { NSUInteger editingRow = [fields indexOfObject:editedTitle]; - if (editedRow != -1 && [tableView editedTextRow] != (NSInteger)editingRow) { + if (editingRow != NSNotFound && [tableView editedTextRow] != (NSInteger)editingRow) { [tableView editColumn:1 row:editingRow withEvent:nil select:NO]; 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 Bibdesk-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-commit