[gimp] plug-ins: discard leading 0s in regular expression for cursor size/delay
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: discard leading 0s in regular expression for cursor size/delay
- Date: Sun, 7 Jan 2018 14:50:11 +0000 (UTC)
commit df933c7b7081930b3562496ce2a750b5bd851a4d
Author: Jehan <jehan girinstud io>
Date: Sun Jan 7 15:31:18 2018 +0100
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.
plug-ins/common/file-xmc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/common/file-xmc.c b/plug-ins/common/file-xmc.c
index 41bedb1..f9160de 100644
--- a/plug-ins/common/file-xmc.c
+++ b/plug-ins/common/file-xmc.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]