plug-ins: discard leading 0s in regular expression for cursor size/delay

Leading 0s have no special value, we use base 10 anyway. Removing
leading 0s allows to not trigger the 8-digit test, hence modify a valid
cursor size unecessarily.
This commit is contained in:
Jehan
2018-01-07 15:31:18 +01:00
parent 0484ce83af
commit df933c7b70

View File

@ -1471,7 +1471,7 @@ save_image (const gchar *filename,
* define this in that function is easy to read but place here to
* reduce overheads.
*/
re = g_regex_new ("[(][ ]*(\\d+)[ ]*(px|ms)[ ]*[)]",
re = g_regex_new ("[(][ 0]*(\\d+)[ ]*(px|ms)[ ]*[)]",
G_REGEX_CASELESS | G_REGEX_OPTIMIZE,
0,
NULL);