Skip to content

Commit

Permalink
update #891 do not crash by backing up over key beginning on mangled …
Browse files Browse the repository at this point in the history
…heb key content
  • Loading branch information
karlkleinpaste committed May 1, 2018
1 parent b05cb46 commit 69ad689
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gtk/dictlex.c
Expand Up @@ -266,7 +266,8 @@ void dict_find_all_strongs(GtkButton *button,
/* nothing */ ;

/* heb numbers use a pointless leading 0, grk does not. */
if (hebrew) --start;
if (hebrew && (start > key))
--start;

lemma = g_strdup_printf("lemma:%c%s", (hebrew ? 'H' : 'G'), start);
gtk_entry_set_text(GTK_ENTRY(ss.entrySearch), lemma);
Expand Down

0 comments on commit 69ad689

Please sign in to comment.