aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-int.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@src.gnome.org>2007-07-27 22:48:16 +0800
committerMilan Crha <mcrha@src.gnome.org>2007-07-27 22:48:16 +0800
commitf0d21ded368b4fc2bc2285767f08587c5a821185 (patch)
tree666e2eaddd5b2f5147499faa0c956e8c96559ca8 /filter/filter-int.c
parent6c80ae2e42f11ab1e6aeea312a66d0a6b747321a (diff)
downloadgsoc2013-evolution-f0d21ded368b4fc2bc2285767f08587c5a821185.tar.gz
gsoc2013-evolution-f0d21ded368b4fc2bc2285767f08587c5a821185.tar.zst
gsoc2013-evolution-f0d21ded368b4fc2bc2285767f08587c5a821185.zip
2007-07-27 Johnny Jacob Fix for bug #457523.
svn path=/trunk/; revision=33862
Diffstat (limited to 'filter/filter-int.c')
-rw-r--r--filter/filter-int.c8
1 files changed, 6 insertions, 2 deletions
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);
}