From f0d21ded368b4fc2bc2285767f08587c5a821185 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 27 Jul 2007 14:48:16 +0000 Subject: 2007-07-27 Johnny Jacob Fix for bug #457523. svn path=/trunk/; revision=33862 --- filter/filter-int.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'filter/filter-int.c') diff --git a/filter/filter-int.c b/filter/filter-int.c index 873e6a4a33..ce254c4f4a 100644 --- a/filter/filter-int.c +++ b/filter/filter-int.c @@ -264,6 +264,10 @@ static void format_sexp (FilterElement *fe, GString *out) { FilterInt *fs = (FilterInt *)fe; - - g_string_append_printf (out, "%d", fs->val); + + if (fs->val < 0) + /* See #364731 #457523 C6*/ + g_string_append_printf (out, "(- %d)", (fs->val * -1)); + else + g_string_append_printf (out, "%d", fs->val); } -- cgit