forked from AuroraMiddleware/gtk
Merge branch 'fix-mnemonic-zero' into 'master'
label: Fix mnemonic zero Closes #2805 See merge request GNOME/gtk!1993
This commit is contained in:
commit
e8e28b61db
@ -2238,7 +2238,7 @@ extract_mnemonic_keyval (const char *text,
|
|||||||
p = g_utf8_next_char (p);
|
p = g_utf8_next_char (p);
|
||||||
c = g_utf8_get_char (p);
|
c = g_utf8_get_char (p);
|
||||||
|
|
||||||
if (c != '_' && c != '0')
|
if (c != '_' && c != '\0')
|
||||||
{
|
{
|
||||||
const gsize byte_index = p - text - 1; /* Of the _ */
|
const gsize byte_index = p - text - 1; /* Of the _ */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user